This repository was archived by the owner on Jul 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix and wire up the Playwright-Electron setup-wizard e2e suite #39
Open
Miyamura80
wants to merge
2
commits into
main
Choose a base branch
from
claude/fix-e2e-setup-wizard-harness
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+79
−9
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: e2e | ||
|
|
||
| # Runs the Playwright-Electron setup-wizard suite against a real build of the app. | ||
| # Electron is a GUI process, so it needs an X server - we give it a virtual one | ||
| # via xvfb-run and launch with --no-sandbox/--disable-gpu (set in e2e/fixtures.ts). | ||
| # EDISON_DRY_RUN=1 (also in fixtures.ts) short-circuits the stdiod/detectord | ||
| # daemons so the app boots straight to the wizard with no native subprocesses. | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
|
|
||
| concurrency: | ||
| group: e2e-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| setup-wizard: | ||
| name: Setup wizard (Playwright-Electron) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: npm | ||
|
|
||
| - run: npm ci | ||
|
|
||
| # System libraries the Electron/Chromium runtime needs (libnss3, libgbm, | ||
| # libasound, ...). Playwright ships the exact set for its Chromium, which is | ||
| # a superset of what Electron needs, so reuse it instead of a manual apt list. | ||
| - name: Install headless runtime deps | ||
| run: npx playwright install-deps chromium | ||
|
|
||
| - name: Build the app (main + preload + renderer) | ||
| run: npm run build | ||
|
|
||
| # xvfb-run -a provides the virtual X server on an auto-selected display. | ||
| - name: Run e2e under Xvfb | ||
| run: xvfb-run -a npm run test:e2e | ||
|
|
||
| # On failure, upload the HTML report + per-test traces/screenshots so the | ||
| # failure is debuggable beyond the raw log (playwright.config.ts retains | ||
| # trace + screenshot on failure). | ||
| - name: Upload Playwright artifacts | ||
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: playwright-report | ||
| path: | | ||
| playwright-report/ | ||
| test-results/ | ||
| retention-days: 7 | ||
| if-no-files-found: ignore | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.