Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/linuxUI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,10 @@ jobs:
name: e2e-results-linux
path: test-results/
retention-days: 7

- name: Write Job Summary
if: always()
run: |
if [ -f test-results/summary.md ]; then
cat test-results/summary.md >> "$GITHUB_STEP_SUMMARY"
fi
8 changes: 8 additions & 0 deletions .github/workflows/windowsUI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ jobs:
name: e2e-results-windows
path: test-results/
retention-days: 7

- name: Write Job Summary
if: always()
shell: bash
run: |
if [ -f test-results/summary.md ]; then
cat test-results/summary.md >> "$GITHUB_STEP_SUMMARY"
fi
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1150,8 +1150,7 @@
"compile": "tsc -p . && webpack --config webpack.config.js --mode development",
"watch": "webpack --mode development --watch",
"test": "tsc -p . && webpack --config webpack.config.js --mode development && node ./dist/test/index.js",
"test-ui": "tsc -p . && webpack --config webpack.config.js --mode development && node ./dist/test/ui/index.js",
"test-e2e": "npx playwright test --config test/e2e/playwright.config.ts",
"test-e2e": "autotest run-all test/e2e-plans --no-llm",
"build-server": "node scripts/buildJdtlsExt.js",
"vscode:prepublish": "tsc -p ./ && webpack --mode production",
"tslint": "tslint -t verbose --project tsconfig.json"
Expand All @@ -1172,8 +1171,6 @@
"ts-loader": "^9.4.2",
"tslint": "^6.1.3",
"typescript": "^4.9.4",
"vscode-extension-tester": "^8.23.0",
"@playwright/test": "^1.50.0",
"webpack": "^5.105.0",
"webpack-cli": "^4.10.0"
},
Expand Down
29 changes: 26 additions & 3 deletions test/e2e-plans/java-dep-project-explorer.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Test Plan: Java Dependency — Project Explorer
#
# Covers projectExplorer.test.ts scenarios:
# Covers scenarios:
# - javaProjectExplorer.focus shows Java Projects section
# - linkWithFolderExplorer reveals active file in tree
# - unlinkWithFolderExplorer stops auto-reveal
# - revealInProjectExplorer reveals file from File Explorer context menu
#
# Usage:
# npx autotest run test/e2e-plans/java-dep-project-explorer.yaml --vsix <path-to-vsix>

name: "Java Dependency — Project Explorer"
description: |
Tests the Java Projects explorer view: focus, link/unlink with editor.
Replaces test/e2e/tests/projectExplorer.test.ts.
Tests the Java Projects explorer view: focus, link/unlink with editor,
reveal in project explorer.

setup:
extension: "redhat.java"
Expand Down Expand Up @@ -85,3 +86,25 @@ steps:
- id: "relink-editor"
action: "run command Java: Link with Editor"
verify: "Editor re-linked with tree"

# ── Test 4: revealInProjectExplorer ──
# Collapse all tree nodes, then reveal App.java from editor
- id: "collapse-all"
action: "run command View: Collapse All"
verify: "Collapse tree to reset state"

- id: "open-app-file"
action: "open file App.java"
waitBefore: 2

- id: "reveal-in-project-explorer"
action: "run command Java: Reveal in Java Project Explorer"
waitBefore: 2

- id: "verify-revealed"
action: "wait 2 seconds"
verify: "App class should be revealed in Java Projects tree"
verifyTreeItem:
name: "App"
exact: true
timeout: 15
191 changes: 0 additions & 191 deletions test/e2e/fixtures/baseTest.ts

This file was deleted.

34 changes: 0 additions & 34 deletions test/e2e/globalSetup.ts

This file was deleted.

29 changes: 0 additions & 29 deletions test/e2e/playwright.config.ts

This file was deleted.

Loading
Loading