Skip to content

docs(site): add UI testing framework topic#2509

Draft
yuyutaotao wants to merge 25 commits into
mainfrom
codex/ui-testing-framework-docs
Draft

docs(site): add UI testing framework topic#2509
yuyutaotao wants to merge 25 commits into
mainfrom
codex/ui-testing-framework-docs

Conversation

@yuyutaotao

Copy link
Copy Markdown
Collaborator

No description provided.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 20, 2026

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1b78400
Status: ✅  Deploy successful!
Preview URL: https://e7ef77f7.midscene.pages.dev
Branch Preview URL: https://codex-ui-testing-framework-d.midscene.pages.dev

View logs

@yuyutaotao yuyutaotao force-pushed the codex/ui-testing-framework-docs branch 2 times, most recently from 0930742 to 5c576b0 Compare May 20, 2026 07:38
@yuyutaotao yuyutaotao force-pushed the codex/ui-testing-framework-docs branch from 5c576b0 to bde88d9 Compare May 20, 2026 07:40
quanru added a commit that referenced this pull request Jun 1, 2026
Add the `@midscene/testing-framework` package implementing the Framework
Config Runner MVP from #2509:

- `defineMidsceneConfig` and `runMidsceneSuite`
- load `midscene.config.ts` (testDir/include/exclude, testRunner, output,
  agentOptions, target, setup, yamlSteps) with validation
- YAML case discovery (glob include/exclude, .yaml/.yml/.test.ts, stable sort)
- default web (PlaywrightAgent) and android (agentFromAdbDevice) targets,
  plus fully custom setup
- custom yamlSteps interleaved with built-in steps in authored order
- each YAML case runs as one Rstest test via runRstest + virtual modules,
  with suite-level setup/teardown and shared state
ottomao added 2 commits June 3, 2026 14:45
- Mark this as a new v2 framework, distinct from the existing YAML player
- Reframe verify/agent: verify is the deterministic gate; agent is
  exploratory and non-deterministic, advisory only (no pass/fail effect)
- Present Pi as a swappable agent layer aligned with the community direction
- Define the Pi context contract: past steps + their outputs + current UI,
  nothing more; clarify naming, skill-result lifetime, and output vs
  context.state channels
- Rewrite the Rstest section to emphasize lifecycle/fixtures/concurrency
  over raw runtime speed
Phase-0 design draft for the v2 AI-native testing framework: node model
(ui/verify/soft/agent + runtime nodes), midscene.config.ts with a single
uiAgent union (declarative or factory), defineRuntime, $name skills reusing
Pi's built-in Skills, the verify verdict contract (report_verdict customTool,
fail-closed), the natural-language output model, and the Pi context contract.
Records all settled decisions; only open item is Pi custom base-URL parity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants