Repository navigation
Get the test workflow green: pin the runner and fix stale e2e setup - #20
Open
wirelessdreamer wants to merge 1 commit into
Open
wirelessdreamer wants to merge 1 commit into
wirelessdreamer wants to merge 1 commit into
Conversation
- Pin test.yml to ubuntu-24.04: ubuntu-latest is now 26.04, where `playwright install --with-deps chromium` fails (no Chromium build). - Point the e2e Vite dev server at the fixture API on 8765. It proxied to the dev default 43174, which nothing serves in CI, so every API-backed spec timed out. - Run pages-site.spec.ts only under playwright.pages.config.ts (it needs the VITE_PUBLIC_SITE production bundle) and add that run to CI. - Remove workbench specs and screenshots.spec.ts that drive WorkbenchPage, which has not been routed since 4fbd8fd made the comparison page the workbench. Word-study hover/pin is covered on the live UI by arrangement-sources.spec.ts. Update the welcome, assistant-docking and phone specs to the current UI, and drop the dead capture:screenshots script and its README instructions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes the red
testcheck seen on #19, which comes from two problems unrelated to that PR's changes.1. Playwright install fails on the new runner
ubuntu-latestnow resolves to Ubuntu 26.04, andnpx playwright install --with-deps chromiumfails with "Playwright does not support chromium on ubuntu26.04-x64". The lockfile already has@playwright/test1.59.1, so the smaller fix is to pintest.ymltoubuntu-24.04. The other workflows (validate,audit,release,pages) don't install Playwright and passed on 26.04, so they are left as they are.2. e2e was already failing on
main(18 failures, not 6)playwright.config.tsstarts the fixture API on 8765, but Vite proxied to its default127.0.0.1:43174, which nothing serves in CI. That caused theECONNREFUSEDspam and every API-backed timeout. Fix: the Vite web server now getsVITE_API_BASE_URL=http://127.0.0.1:8765.pages-site.spec.tswas running under the wrong config. It needs theVITE_PUBLIC_SITEproduction bundle fromplaywright.pages.config.ts, so it found the dev build's "Open Workbench" link. Fix: the default config ignores it, and CI now also runsnpx playwright test -c playwright.pages.config.ts. It passes 3/3 there.workbench.spec.tsplus both tests inscreenshots.spec.tsdriveWorkbenchPage. That page hasn't been routed since 4fbd8fd ("Make translation comparison the primary interface"):/#/workbenchnow rendersComparisonPage, and the token inspector, workflow tab, flow canvas and guided-translation card these specs look for no longer exist. Removed those tests,screenshots.spec.ts, and its deadcapture:screenshotsscript and README instructions. Word-study hover, pin and Escape on the live UI are already covered byarrangement-sources.spec.ts..comparison-shellinstead of.workspace-grid.App.tsxshowShellAssistant) and "Verse comparison" shows.Verification
Run locally on Windows with the system Edge channel, the fixture API on 8765 and Vite on 4173 (not the dev ports):
playwright test: 48 passed, 0ECONNREFUSEDplaywright test -c playwright.pages.config.ts: 3 passed🤖 Generated with Claude Code