Repository navigation
test(help): tie the selector command lists to the command surface - #5041
Conversation
|
Thanks for tying the selector command lists to the command surface. The change at 04d307f is ready, and there are no conflicts. CI passes apart from two cancelled Body rules jobs, which this diff does not touch. Not verified here: the test and its mutants were read statically and not run, and the CLI was not run for each of the six gesture, scroll, screenshot and find argv shapes. Not blocking, and fine to take or leave: the "described as a selector" check cannot see |
Summary
Follow-up to the #5028 review notes.
help selectorsand selectors.md must equal the commands whose input has aselectorfield (click, press, fill, longpress, hover, get, is, wait). The other selector inputs are read through the CLI parser and readers, and both texts must name each one: findquery,scroll --until,screenshot --crop-on, gesture pinchelement, gesture dragsourceanddestination. Any other input field described as a selector fails the test until it is listed.checkedexample: the bare-key example is nowrole=switch checked, shown in both texts and pinned torole=switchpluschecked=true. It replaces a barecheckedthat any text containing the word matched.agent-device help selectors, as commands.md does for exact behavior.Validation
check:affected --run --head 04d307fef: format, lint, typecheck, layering, fallow, build and vitest-related pass.check:doc-linksandcheck:doc-prosepass.role=switch checkedrow fails. The command-list tests pass there and guard later drift.hoverdropped from the help list,waitdropped from the selectors.md list,gesture pinchdropped from selectors.md,screenshot --crop-ondropped from the help, the swipefromfield described as a selector, the bare-key example reworded, and a bare key parsed asfalse.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.