Skip to content

Commit 03c7942

Browse files
committed
test(new-types): collapse tree via real Collapse All toolbar button
The five between-cycle collapseAll steps previously fired through executeVSCodeCommand (keybinding bridge), which exercised the command but skipped any UI verification. The Collapse All icon button in the Java Projects view title-bar is a real navigation-group toolbar action that users see and click — drive it through clickViewTitleAction so the click target is verified. With the driver-side pre-click sub-screenshot (autotest c24658f), each cycle now produces one frame showing the Collapse All button hovered with its tooltip rendered, proving the mouse landed on the right element. Other executeVSCodeCommand uses are kept as-is: - saveAll (Ctrl+S) — legitimate user keyboard path - closeAuxiliaryBar / javaProjectExplorer.focus — non-test-target setup Verified: java-dep-new-types 64/64 passing locally.
1 parent 77c1fd9 commit 03c7942

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/e2e-plans/java-dep-new-types.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ steps:
103103
action: "run command View: Close All Editors"
104104

105105
- id: "collapse-tree-1"
106-
action: "executeVSCodeCommand workbench.actions.treeView.javaProjectExplorer.collapseAll"
106+
action: 'clickViewTitleAction "Java Projects" "Collapse All"'
107107

108108
- id: "collapse-workspace-root-2"
109109
action: "collapseWorkspaceRoot"
@@ -142,7 +142,7 @@ steps:
142142
action: "run command View: Close All Editors"
143143

144144
- id: "collapse-tree-2"
145-
action: "executeVSCodeCommand workbench.actions.treeView.javaProjectExplorer.collapseAll"
145+
action: 'clickViewTitleAction "Java Projects" "Collapse All"'
146146

147147
- id: "collapse-workspace-root-3"
148148
action: "collapseWorkspaceRoot"
@@ -181,7 +181,7 @@ steps:
181181
action: "run command View: Close All Editors"
182182

183183
- id: "collapse-tree-3"
184-
action: "executeVSCodeCommand workbench.actions.treeView.javaProjectExplorer.collapseAll"
184+
action: 'clickViewTitleAction "Java Projects" "Collapse All"'
185185

186186
- id: "collapse-workspace-root-4"
187187
action: "collapseWorkspaceRoot"
@@ -220,7 +220,7 @@ steps:
220220
action: "run command View: Close All Editors"
221221

222222
- id: "collapse-tree-4"
223-
action: "executeVSCodeCommand workbench.actions.treeView.javaProjectExplorer.collapseAll"
223+
action: 'clickViewTitleAction "Java Projects" "Collapse All"'
224224

225225
- id: "collapse-workspace-root-5"
226226
action: "collapseWorkspaceRoot"
@@ -258,7 +258,7 @@ steps:
258258
action: "run command View: Close All Editors"
259259

260260
- id: "collapse-tree-5"
261-
action: "executeVSCodeCommand workbench.actions.treeView.javaProjectExplorer.collapseAll"
261+
action: 'clickViewTitleAction "Java Projects" "Collapse All"'
262262

263263
- id: "collapse-workspace-root-6"
264264
action: "collapseWorkspaceRoot"

0 commit comments

Comments
 (0)