Repository navigation
Real-browser test for the CRUD screen (refs #332) - #334
Merged
Merged
Conversation
jimhoyd
force-pushed
the
test/crud-browser-332
branch
from
September 20, 2026 20:47
2d210c7 to
66ada72
Compare
Drives the runner's preinstalled Chrome over the DevTools protocol with Node's built-in WebSocket: no new dependency or action. One step on the Linux Node 24 workspaces leg; no new job or required check. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
jimhoyd
force-pushed
the
test/crud-browser-332
branch
from
September 20, 2026 20:56
66ada72 to
8368a46
Compare
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.
Refs #332 (does not close it).
Adds packages/ui/test/browser/crud.browser.ts and
npm run test:browserin packages/ui. It serves the shipped crudScreen page and script (strict CSP) from a loopback server and drives Chrome over the DevTools protocol using Node's built-in WebSocket. Checks: edit text, focus and caret survive a re-render; a failed PATCH rolls the checkbox back; hostile record markup renders as text; no CSP violation (with an inline-script control proving the policy is enforced).Cost: no new dependency and no new action (uses the Chrome preinstalled on ubuntu-latest). One step on the workspaces job's Linux Node 24 leg only; no new job, so the required-check plan and test/ci-release.test.ts are unchanged. About 1.4 s locally for the three tests. CI step time to be read from this PR's run. Not part of npm test; skips without a browser locally, CI sets URLCODE_REQUIRE_BROWSER=1 so a missing browser fails. Mutation check: removing the rollback line fails the PATCH test.
Docs: DEVELOPMENT-PIPELINE.md and a decision row in OPEN-DECISIONS.md (widen to other OS/browsers only on evidence; drop rather than retry if flaky). CRUD component untouched. npm run verify and check:docs pass locally.
🤖 Generated with Claude Code