Repository navigation
test(verify): add verify-nojs-elements browser verification skill - #131
Merged
Merged
Conversation
Agents had no scripted way to prove element behavior in a real browser. verify-nojs-elements launches test-server.js on an isolated port, runs the example pages on a chosen core build (the shared ../NoJS checkout is often an older release), drives JSON journeys through Playwright Chromium and keeps screenshots, ARIA snapshots, console and network logs in .verify/. - feature map: modal, tabs, dropdown, validation, drag and drop - compiled-host mode under NoJS-Server documented as a pointer - .gitignore tracks .claude/skills/ and ignores .verify/
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
.claude/skills/verify-nojs-elements/, a project-local verification skill that lets an agent (or a person) prove element behavior in a real browser instead of stopping at Jest: launch an isolated server, check it, drive the example pages the way a visitor does, and keep the evidence.scripts/verify.mjswithlaunch | doctor | drive | stop. It startstest-server.json a chosen port (default 4321), records the pid under.verify/run/<port>/, and only ever stops the process it started (verified by pid, command and cwd).--core <no.js>picks the NoJS core build the pages run on.test-server.jsalways serves/NoJS/...from the sibling../NoJScheckout, which is often an older release (1.21.1 on this machine while Elements is 1.23.0), so the harness serves the chosen build to the driven browser and records the version the page actually loaded (loadedCoreVersioninresult.json).https://cdn.no-js.dev/andhttps://cdn-elements.no-js.dev/are mapped to the chosen core and this checkout'sdist/the same way.driveruns a JSON journey through the repo's own Playwright Chromium: user actions (click,key,focus,drag,fill, ...) and expectations (expect-attrfor ARIA state,expect-focused,expect-class,expect-disabled, ...). Evidence goes to.verify/evidence/<stamp>-<name>/:steps.log,result.json,console.log,network.jsonl, screenshots and ARIA snapshots.features/maps five user-facing elements with recipes and gotchas: modal, tabs, dropdown, form validation, drag and drop.journeys/holds the executable form of each recipe.NOJS_ELEMENTS_PATH. Not run as part of this PR..gitignore:.claude/becomes.claude/*plus!.claude/skills/so project skills are tracked while local Claude settings stay ignored, and.verify/is ignored.No product code changes.
Proof run (d9636db, macOS, Node 26, core build from no-js-dev/nojs main ede16b0 = 1.23.0)
After
stop: port 4321 free, pid gone,.verify/run/4321/removed, the evidence directory and the server log still present.All mapped journeys pass on
main:modal,tabs,dropdown,validation,dnd(including keyboard grab, move and drop: the list reads KB-2, KB-1, KB-3 afterwards).Notes for reviewers
test-server.jshas no host option and listens on all interfaces; the skill says so and tells the reader to stop it when done.npm start(docs/dev-server.js) auto-picks a port in 3000-3010, so the skill usestest-server.jsfor isolation.