docs(site): add UI testing framework topic#2509
Draft
yuyutaotao wants to merge 25 commits into
Draft
Conversation
Deploying midscene with
|
| 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 |
0930742 to
5c576b0
Compare
5c576b0 to
bde88d9
Compare
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
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.