Commit 77c1fd9
committed
test(view-modes): drive view-mode toggles through real UI
The four toggle steps (switch-to-hierarchical, switch-to-flat,
hide-non-java, show-non-java) previously fired their commands via
executeVSCodeCommand (keybinding bridge), which sidestepped the
actual user-facing entry point in the Java Projects view title-bar
overflow menu. The `before`/`after` screenshots were nearly identical
since no mouse interaction was modeled and the tree refresh is async,
which gave no visual evidence the user-facing toggle actually works.
Switch to clickViewTitleAction so each toggle goes through the real
overflow menu. Combined with the driver-side pre-click sub-screenshots
(autotest c24658f), each step now produces two click-evidence frames:
the `...` overflow button hovered (with tooltip) and the menu item
highlighted (e.g. "Hierarchical View" focused).
Menu labels match package.nls.json:
- "Hierarchical View" / "Flat View"
- "Hide Non-Java Resources" / "Show Non-Java Resources"
The Hide/Show labels mirror each other based on the
config.java.project.explorer.showNonJavaResources context key, so the
plan alternates between "Hide" (when currently shown) and "Show"
(when currently hidden). Comments document this.
Verified: java-dep-view-modes 30/30 passing locally.1 parent 64d243c commit 77c1fd9
1 file changed
Lines changed: 19 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
203 | | - | |
204 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
0 commit comments