Commit acb0ded
fix(e2e): collapse JAVA PROJECTS tree before second click-project-node (#1009)
The Test 1 `enter-class-name App2` step opens App2.java in the editor.
With link-with-editor on (default), this auto-expands the JAVA PROJECTS
tree to my-app → src/main/java → com.mycompany.app → App2.java to
reveal the newly created file.
When Test 2 then closes editors and tries to click the my-app root node
again, the tree is still expanded so my-app is no longer at row 0. Even
after `focus-java-projects`, the row gets scrolled, and the sticky JAVA
PROJECTS pane-header (.pane-header .title) intercepts the click. CI logs
show the click hit the codicon-collapse-all button on the view title bar
instead of the my-app row, causing `click-project-node-2` to fail.
`collapseWorkspaceRoot` only collapses the Explorer view's workspace
root, not the JAVA PROJECTS view. Use the view's own `Collapse All`
title-bar action via clickViewTitleAction (autotest 0.6.6+) to reset
the tree state, putting my-app back at row 0 below the pane-header.
Verified locally: 40/40 steps pass with the new collapse step.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 578059f commit acb0ded
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
0 commit comments