Skip to content

Real-browser test for the CRUD screen (refs #332) - #334

Merged
jimhoyd merged 2 commits into
mainfrom
test/crud-browser-332
Sep 20, 2026
Merged

jimhoyd merged 2 commits into
mainfrom
test/crud-browser-332

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Refs #332 (does not close it).

Adds packages/ui/test/browser/crud.browser.ts and npm run test:browser in 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

@jimhoyd
jimhoyd force-pushed the test/crud-browser-332 branch from 2d210c7 to 66ada72 Compare September 20, 2026 20:47
jimhoyd and others added 2 commits September 20, 2026 15:56
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]>
@jimhoyd
jimhoyd force-pushed the test/crud-browser-332 branch from 66ada72 to 8368a46 Compare September 20, 2026 20:56
@jimhoyd
jimhoyd merged commit 7bbec87 into main Sep 20, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the test/crud-browser-332 branch September 20, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants