diff --git a/docs/AGENT_BROWSER.md b/docs/AGENT_BROWSER.md index 133c0c10e40b..60d6efe457fb 100644 --- a/docs/AGENT_BROWSER.md +++ b/docs/AGENT_BROWSER.md @@ -44,6 +44,7 @@ for (let i = 0; i < 30 && !window.__mt; i++) await new Promise((r) => setTimeout | `getConfig.` | 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) | diff --git a/frontend/src/ts/dev/expose.ts b/frontend/src/ts/dev/expose.ts index 66426f0741cb..612fd7594c21 100644 --- a/frontend/src/ts/dev/expose.ts +++ b/frontend/src/ts/dev/expose.ts @@ -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"; @@ -54,6 +54,7 @@ const mt = { getConfig, setConfig, showModal, + hideModal, restartTest, typeText, wordsSnapshot,