Repository navigation
test(e2e): Playwright regression suite for Studio and Hub, run in CI - #107
Merged
Merged
Conversation
New workspace apps/e2e drives the production web builds (vite preview of out/) through their real UI: boot and sample, editing, every view kind, perspectives, presentations, export, Smart Layout invariants and Hub. Screenshot baselines are Linux-only (Playwright image) and taken on a frozen page clock so animations and the live layout render the same frame on every run. Each test fails on uncaught exceptions or console errors and blocks requests that leave localhost; Hub's catalogue requests are served from the build's own out/hub/. known-issues.spec.ts records bugs found while writing the suite as test.fail, so they turn red once fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e2e.yml (reusable) runs the suite in the Playwright image and uploads the report. ci.yml calls it, and deploy.yml now deploys only after it passes. The update-screenshots label on a PR regenerates the baselines and commits them to the branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Adds an end-to-end regression suite (
apps/e2e, Playwright) that drives the production web builds of Studio and Hub, and runs it in the pipeline..radicaldownload.toHaveScreenshoton a frozen page clock, so animations and the live layout render the same frame every run. Baselines are Linux-only, generated in themcr.microsoft.com/playwright:v1.63.0-nobleimage. Screenshot assertions are skipped on macOS/Windows; everything else runs there.console.error; requests leaving localhost are blocked. Hub's requests tohub.radical.toolsare served from this build'sout/hub/, so the suite checks the catalogue that is about to ship, not production.e2e.ymlcalled fromci.yml;deploy.ymlnow deploys only after e2e passes. Adding theupdate-screenshotslabel to a PR regenerates the baselines in CI and commits them to the branch (only if the suite then passes).npm run e2efrom the root builds both apps and runs the suite (~1 min locally). Details inapps/e2e/README.md.Bugs found while writing the suite
Each is a
test.failtest inapps/e2e/tests/studio/known-issues.spec.ts(green while the bug exists, red once it's fixed) and is logged indocs/IMPROVEMENTS.md:pagehide, together with the drifted positions.zoomOnDoubleClickswallows it)..radicalfiles served without a JSON content type, so concept deep links fail when hub.radical.tools is unreachable.<label>s are not tied to their inputs.Before merging
The screenshot baselines are not in this PR yet, so the E2E check fails until they are. Add the
update-screenshotslabel, review the committed images, then re-run CI (a bot push does not trigger workflows). Since deploy now depends on e2e, merging without baselines would block deploys.Type of change
Checklist
npm testpassesnpm run typecheckpasses with no errors🤖 Generated with Claude Code