Skip to content

Commit 45b5ea5

Browse files
wenytang-msCopilot
andcommitted
test(autotest): assert JDK dropdown opens after migration
Add two steps that click the JDK Runtime tab's <vscode-single-select> (id="jdk-dropdown") and capture the open state. We do not assert which JDKs the runner exposes — only that the dropdown still opens, which is what the React 19 + @vscode-elements migration could regress. Pin the autotest CLI to ^0.7.0 so CI picks up the new clickInWebview action (publishing 0.7.0 happens separately on the autotest repo). Also ignore test-results/ — those are local autotest artifacts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ed5e30e commit 45b5ea5

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/e2e-autotest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
java-version: 21
131131

132132
- name: Install autotest CLI
133-
run: npm install -g @vscjava/vscode-autotest
133+
run: npm install -g @vscjava/vscode-autotest@^0.7.0
134134

135135
- name: Download PR VSIX (vscode-java-pack from branch)
136136
if: ${{ github.event_name == 'pull_request' }}
@@ -234,7 +234,7 @@ jobs:
234234
node-version: 20
235235

236236
- name: Install autotest CLI
237-
run: npm install -g @vscjava/vscode-autotest
237+
run: npm install -g @vscjava/vscode-autotest@^0.7.0
238238

239239
- name: Download all results
240240
uses: actions/download-artifact@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@ out/
6464
.vscode-test
6565

6666
*.vsix
67+
68+
# Autotest local outputs
69+
test-results/
70+

test-plans/java-webview-migration.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,21 @@ steps:
158158
- "JDK Runtime"
159159
timeout: 30
160160

161+
# Regression check: clicking the JDK dropdown opens a list. We do not
162+
# enumerate which JDKs appear (that depends on the host runner), only
163+
# that the vscode-elements <vscode-single-select> still wires up after
164+
# the React 19 migration. clickInWebview throws if #jdk-dropdown is
165+
# not present in any webview frame, so a silent migration regression
166+
# surfaces as a hard error rather than a no-op pass.
167+
- id: "open-jdk-dropdown"
168+
action: "clickInWebview #jdk-dropdown"
169+
verify: "JDK dropdown opens listing detected runtimes"
170+
waitBefore: 1
171+
172+
- id: "verify-jdk-dropdown"
173+
action: "wait 2 seconds"
174+
verify: "screenshot shows the JDK dropdown expanded with at least one runtime entry"
175+
161176
- id: "close-java-runtime"
162177
action: "run command View: Close All Editors"
163178

0 commit comments

Comments
 (0)