UI test recipe -- composes browser-record (capture) + browser-replay (verify) so every test produces a replayable RVF artifact, not an ephemeral run
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-browser-test-f60c335488ab ,按照其中的说明把「browser-test」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Automated UI testing. Now backed by a recorded RVF session container instead of an ephemeral run, so every test produces a replayable artifact.
browser-record:
--kind browser-session.browser_open, browser_click, browser_fill, browser_type, browser_select. Each action emits a trajectory-step.browser_wait before assertions.browser_get-text / browser_get-value / browser_get-title / browser_get-url. Validation outcomes go into findings.md inside the RVF container.<step-id>.png.trajectory-end --verdict pass|fail, rvf compact, AgentDB index in browser-sessions.--against <prior-session-id>: invoke browser-screenshot-diff to compare the new run with a baseline.browser_back / browser_forward for history navigationbrowser_reload to refresh the pagebrowser_scroll to scroll to elements or coordinatesbrowser_close alone — it ends with the session-end protocol.browser-selectors (host:intent), so the next test can find them by embedding similarity.aidefence_is_safe before any LLM-facing summary; injection-flagged content is quarantined to findings.md./ruflo-browser replay can re-drive.browser_wait before assertions to handle async rendering.--against <id> on the next run.browser_eval for custom JavaScript assertions — but redact any returned strings via the aidefence_is_safe gate before logging.