Keyboard shortcuts designed for efficient agent testing #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I read that shopify engineers are designing their applications to have very robust keyboard control so agents can run UI tests quickly and headlessly. Lets implement it in braid, and see if there are any efficiency gains in doing UI testing driven by keyboard control. Or perhaps it will imrpove scripting of UI tests. Or both?
Here is the article if you want to reference:
https://shopify.engineering/back-to-native
Shipped in #58 (commit
c88c254) and archived asopenspec/changes/archive/2026-09-26-keyboard-commands-and-fast-tests. The behaviour is specified inopenspec/specs/keyboard-commands.What shipped
g r/g i/g m/g s(runs, inbox, inference, settings),n(new run),]/[(next and previous run),j/kor ↓/↑ (steps),g a(the step the run is on),t/v/d/r(transcript, review, details, redo),Y(accept a failed step),h(thinking),a(subagents),i(composer),S/R(stop and resume the run).Esccloses the lens, then leaves the step, then the run.?opens a sheet built from the same command table the keys use, so it can't drift from them.window.braidexposescommands(),run(id)andstate(), so an agent can drive the console and check the result without reading the page.Is it more efficient? Yes.
e2e/keyboard.spec.tsruns the same six-move tour both ways: 94 ms by keys against 255 ms by clicks on its own, and 241–360 ms against 595–617 ms with other specs running. That's roughly 2–3× in Playwright. An agent driving a browser through tool calls saves more, because one key press orbraid.runreplaces a page read plus a find plus a click. It also simplifies scripting: specs can assert onbraid.state()instead of on the DOM.