Repository navigation
feat(e2e): the journeys as a suite, with a target guard, a count guard and the controls that need no Plane - #137
Merged
Merged
Conversation
…d and the controls that need no Plane #132 built the first browser journey as #44's last criterion and said it becomes the first of #45's. This makes the journeys a suite that a second journey, and the same journeys on the pinned Plane, can join without rewriting what guards them. - One spec per journey in e2e/journeys/ (the M1 journey moves there with git mv); what they share in e2e/support/: the target adapter, the network-log judge and the controls. - E2E_TARGET=thrust|plane and a target guard that runs before any click and names itself (TARGET GUARD). It reads /_info by its body: behind a proxy or the single-page fallback a path that does not exist is a 200 text/html, and a status check alone would call that a Thrust. The Plane form cannot use GET /api/instances/, which Thrust serves in the pin's shape on purpose (S01). - A count guard: scripts/e2e.sh reads each run's own JSON report (e2e/support/check-report.mjs) and requires one passed journey per file in e2e/journeys/, none skipped, unexpected or flaky. Playwright exits 0 for a skipped test, so the exit status alone cannot say it. - Three controls beside the stickies 404, each a run that must fail and say why: the work-item list emptied in the browser (must fail at "see it in the list:"; the run fails as CONTROL INERT if it emptied nothing), the journey skipping itself (the count guard must refuse it), and the journey told it is on the other target (must fail at the target guard). - Docs: the testing pages (app-and-e2e, defect-matrix X18, by-change, running), AGENTS.md, the rust-test-app skill's pointer, PLAN, and G-31 with what was measured and what was not. Measured locally on worker-cf: the journey and all four controls behave as required. The server-side variant of the empty-list control was run once by hand (list returning no rows, reverted, not committed) and the journey failed at "see it in the list:". The count guard was run on eight synthetic reports. The Plane form of the target guard has only been run to refuse a Thrust: the pinned-Plane leg is the next PR. Refs: #45 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 12, 2026
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.
Part of #45 (first of three PRs). Does not close it: the pinned-Plane leg, the committed HAR, the schedule and the parity table are still to come.
What this does
#132 built the first browser journey as #44's last acceptance criterion and said it becomes the first of #45's. This turns the journeys into a suite that a second journey, and the same journeys on the pinned Plane, can join without rewriting what guards them.
e2e/journeys/(the M1 journey moves there; its steps are now named). What they share is ine2e/support/: the target adapter, the network-log judge and the controls.E2E_TARGET=thrust|plane; the guard runs before any click and names itself (TARGET GUARD (<wanted>)). It reads/_infoby its body: behind a proxy or the single-page fallback a path that does not exist is a 200text/html, and a status check alone would call that a Thrust. The Plane form cannot useGET /api/instances/, because Thrust serves it in the pin's shape on purpose (S01); it uses "/_infois not a Thrust answer" and "/api/schema/is an OpenAPI document" (the oracle runs withENABLE_DRF_SPECTACULAR=1).scripts/e2e.shreads each run's own JSON report (e2e/support/check-report.mjs) and requires one passed journey per file ine2e/journeys/, none skipped, unexpected or flaky. Playwright exits 0 for a skipped test, so the exit status alone cannot say it, and the number comes from the files, not from the run.scripts/e2e.sh controls, so theworker-cf e2ecell runs them):results: []and the server's own envelope): must fail atsee it in the list:; the run fails asCONTROL INERTif it emptied nothing;app-and-e2e, defect-matrix X18,by-change,running,AGENTS.md, therust-test-appskill's pointer, PLAN, and a new G-31 row that says what was measured and what was not.Evidence
Measured locally on
worker-cf, 2026-11-12:scripts/e2e.sh worker-cf controlsendedVERDICT: PASS: the journey passed (report: passed 1 of 1), and the four controls each failed as required. The emptied list failed at the step after the reload; the wrong target failed before any step; the skip exited 0 and the count guard refused it.listincrates/thrust-compat-plane/src/issues.rsreturning no rows (a.take(0), reverted, not in this PR), the journey without controls endedVERDICT: FAILatsee it in the list:, in the same words as the browser-side control.scripts/e2e.shpassessh -nlocally and under dash inubuntu:24.04(CI runs it under dash);.github/scripts/tests/test-ci-scripts.sh: passed=60 bad=0.Not measured, said plainly
/api/schema/probe is unverified until the next PR.web/-only change still does not run the cell until the scheduled workflow (the third PR); sign-in and sign-out are still not walked (G-30 gaps 2 and 3).Next
tools/e2e-plane/: the pin's stock bundle (Thrust'sweb/with the Q-R2 ledger reverted, each restored file checked againstweb/PIN-MANIFEST) served on one origin with the oracle API,scripts/e2e.sh plane-oracle, and the committed HAR (local only: the oracle builds from the unpushed fork).🤖 Generated with Claude Code