You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`weAudit: Search and Filter Findings` (`weAudit.showFindingsSearchBar`) – triggers `list.find` on the tree view
121
+
-`Toggle View Mode` (`weAudit.toggleTreeViewMode`) – already covered in extension-host tests; UI coverage would verify the actual tree structure changes
- Prefer `VSBrowser.instance.openResources(...)` over `vscode.open` to open the fixture workspace and files without extra QuickInput interactions.
143
+
- Avoid polling tree view contents during waits (it opens the weAudit view repeatedly and causes unnecessary UI churn). Instead, assert via the persisted `.vscode/<username>.weaudit` file when possible.
144
+
- QuickPick tip: `InputBox.selectQuickPick(...)` often auto-accepts single-select quick picks; calling `confirm()` afterwards can throw `ElementNotInteractableError`.
145
+
- Editor selection tip: `TextEditor.getTextAtLine()` selects the whole file internally (it uses a copy-to-clipboard implementation). Avoid it for selection logic.
146
+
- Cursor positioning tip: `TextEditor.setCursor(line, column)` uses 1-based columns (it drives the `:Ln,Col` UI); column `0` will time out.
147
+
- Timeouts: UI tests should use a suite-level Mocha timeout instead of scattered `this.timeout(...)` calls. This repo uses `test/ui/.mocharc.json` and passes it via `--mocha_config` in `package.json`.
148
+
- Extension isolation: UI tests run with `--disable-extensions` and an isolated `--extensions_dir` (`.test-extensions/extensions`) to prevent local VS Code extensions from affecting runs.
0 commit comments