Commit ab77227
committed
Add UI-driven integration tests with vscode-extension-tester
Add test/ui/extension.test.ts (7 tests) using ExTester + Selenium
WebDriver to exercise the real VS Code UI:
- Status bar: verify Patchloom item appears with correct text
- Show Status: invoke command, verify notification appears
- Open Settings: invoke command, verify settings editor opens
- Configure MCP: invoke command, verify quick pick or warning appears
- Quick Action: invoke command, verify action picker or warning appears
- Configuration changes: verify settings editor can find showStatusBar
Infrastructure:
- Add vscode-extension-tester and @types/mocha as devDependencies
- Add tsconfig.uitest.json for UI test compilation
- Add npm run test:ui script (not part of npm run check)
- Add out-uitest/ and tsconfig.uitest.json to .vscodeignore
UI tests run separately from the fast test suite since they launch a
full VS Code window with WebDriver. Run with: npm run test:ui
Closes #18
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>1 parent 6057088 commit ab77227
6 files changed
Lines changed: 3033 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
0 commit comments