Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/AGENT_BROWSER.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ for (let i = 0; i < 30 && !window.__mt; i++) await new Promise((r) => setTimeout
| `getConfig.<key>` | read config: `getConfig` is the config store object, not a function (`getConfig.fontSize`) |
| `setConfig(key, value)` | write config. Doesn't restart the test (callers restart until T6b): use `runCommand` when the restart matters |
| `showModal(id)` | open a modal by `ModalId` |
| `hideModal(id)` | hide a modal by `ModalId` |
| `restartTest()` | restart the typing test |
| `typeText(text, msPerChar?)` | type through the real input handlers; `"\n"` is a line break, `"\b"` a backspace. Paced with `msPerChar`, else all in one task |
| `wordsSnapshot()` | rendered `#words` children as a flat array: word entries `{ index, classes, letters: [{ text, icon?, classes }] }` mixed with sibling entries `{ sibling: className }` (newlines) |
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/ts/dev/expose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { setPreloading } from "../router/create-router";
import { getRouter } from "../router/instance";
import { navigate } from "../router/navigate";
import { getRoutePage } from "../states/router";
import { showModal } from "../states/modals";
import { hideModal, showModal } from "../states/modals";
import { restartTest } from "../test/test-logic";
import { quickLogin } from "./quick-login";
import { trackedSignals } from "./signal-tracker";
Expand Down Expand Up @@ -54,6 +54,7 @@ const mt = {
getConfig,
setConfig,
showModal,
hideModal,
restartTest,
typeText,
wordsSnapshot,
Expand Down
Loading