Commit 6fcc4ed
ci: fix ui test on windows (#974)
* ci: fix ci
* chore: update
* ci: fix ui test case
* fix: fix ui test on linux
* fix: improve Windows UI test stability
- renameFile: use command palette to save instead of TextEditor.save()
which fails with ElementNotInteractableError after rename dialog
- invisible project: add sleep after workspace switch for UI to settle
- Add dismissModalDialogIfPresent() helper to handle modal dialogs
(e.g. workspace trust) that block sidebar clicks on Windows CI
- Call dialog dismissal in expandInJavaProjects, invisible project test,
and java.project.create test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: retry finding Java Projects section on Linux CI
The javaProjectExplorer.focus command may not render the section
immediately on Linux. Add retry loop with re-issuing the command.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* refactor: replace fixed sleep() with polling helpers in UI tests
Replace 12 fixed sleep() calls with condition-based polling:
- waitForTreeItem / waitForTreeItemGone: poll tree view for item presence
- waitForFileExists / waitForFileGone: poll filesystem for file state
- waitForModalDialog: poll for dialog appearance with graceful fallback
- waitForEditorTitle: poll for editor to show expected file title
This makes tests resilient to CI timing variations instead of relying
on hardcoded delays that may be too short on slow machines.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: address lint errors in UI test helpers
- Use const instead of let for simpleItem (prefer-const)
- Add braces to all single-line if statements (curly)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f5bc3ed commit 6fcc4ed
7 files changed
Lines changed: 5501 additions & 1630 deletions
File tree
- .github/workflows
- test/ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments