-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/ef/add playwright #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7d5c4f7
bump packages.
ejfasting 3e30c90
correct file-extension
ejfasting 6150165
fix
ejfasting 07922f0
small bugfix
ejfasting 1a1522f
Try to fix the issue with vitest and modules
ejfasting e9d657c
Added playwright POC for running vscode insider instance during testing
ejfasting 16860f3
Updated copilot-instructions
ejfasting 7ecb46c
Moved vitests into sub-folders in preperation of e2e tests being added
ejfasting e5d019b
Update packages/superofficedx-vscode-core/src/services/authentication…
ejfasting 773aeac
Update packages/superofficedx-vscode-core/playwright.config.ts
ejfasting a0cf385
Update packages/superofficedx-vscode-core/vitest.config.ts
ejfasting e02a1d2
Update packages/superofficedx-vscode-core/src/services/authentication…
ejfasting 49c16de
Update packages/superofficedx-vscode-core/vitest.config.ts
ejfasting c66a20a
Update test-results/.last-run.json
ejfasting 6248d73
Update packages/superofficedx-vscode-core/src/services/authentication…
ejfasting ef99378
Removed duplicate line generated by copilot
ejfasting 3bf17ec
Added JSDoc for public method
ejfasting File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Project general coding standards | ||
|
|
||
| ## Naming Conventions | ||
| - Use PascalCase for component names, interfaces, and type aliases | ||
| - Use camelCase for variables, functions, and methods | ||
| - Prefix private class members with underscore (_) | ||
| - Use ALL_CAPS for constants | ||
|
|
||
| ## Error Handling | ||
| - Use try/catch blocks for async operations | ||
| - Always log errors with contextual information | ||
|
|
||
| ## Documentation | ||
| - All public methods should have JSDoc | ||
|
|
||
| ## Git | ||
| - Run `pnpm eslint .` - ensure NO NEW errors. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/superofficedx-vscode-core/tests/e2e/playwright/basic.spec.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import { test, expect } from './workbox'; | ||
|
|
||
| test('should be able to execute the first test of the example project', async ({ workbox }) => { | ||
| // Test that VS Code is running | ||
| const title = await workbox.title(); | ||
| expect(title).toContain('Visual Studio Code'); | ||
| console.log('VS Code title:', title); | ||
|
|
||
| // Wait a bit longer for the extension to activate | ||
| await workbox.waitForTimeout(2000); | ||
|
|
||
| // Check if VS Code UI has loaded properly | ||
| const explorerVisible = await workbox.locator('.explorer-viewlet').isVisible(); | ||
| console.log('Explorer visible:', explorerVisible); | ||
|
|
||
| // Try to open command palette and look for SuperOffice commands | ||
| await workbox.keyboard.press('Control+Shift+P'); | ||
| await workbox.waitForSelector('.quick-input-widget', { timeout: 5000 }); | ||
|
|
||
| // Type to search for SuperOffice commands | ||
| await workbox.fill('.quick-input-widget input', 'SuperOffice'); | ||
| await workbox.waitForTimeout(1000); | ||
|
|
||
| // Check if any SuperOffice commands appear | ||
| const quickInputList = await workbox.locator('.quick-input-list'); | ||
| const commandsText = await quickInputList.textContent(); | ||
| console.log('Available commands:', commandsText); | ||
|
|
||
| // Check if our extension commands are available | ||
| const hasSignInCommand = commandsText?.includes('Sign In') || commandsText?.includes('SuperOffice'); | ||
| console.log('SuperOffice commands found:', hasSignInCommand); | ||
|
|
||
| // Press Escape to close command palette | ||
| await workbox.keyboard.press('Escape'); | ||
|
|
||
| // Basic verification that VS Code and extension loaded | ||
| expect(title).toContain('Visual Studio Code'); | ||
| console.log('Test completed successfully'); | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.