web-infra-dev / web-infra-dev/midscene
[Feature]: Support business-context-aware end-to-end test generation and deterministic workflow compilation
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 14.9k
- Forks
- 1.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 96
Description
What problem does this feature solve?
-
Support injecting requirements documents, business rules, field enumerations, API definitions, and page descriptions into the Agent.
-
Support breaking down business scenarios into structured steps instead of relying on a single long
aiActinstruction. -
Support control-flow capabilities such as
if/elseconditions, loops, retries, and step dependencies. -
Support common admin-platform scenarios such as combined filtering, table traversal, and pagination.
-
Support converting a successful AI-driven execution into a reusable Playwright or YAML workflow.
-
Prioritize stable selectors and use visual element localization as a fallback.
-
Support UI assertions, API assertions, and structured data assertions.
-
Record why each step was skipped, failed, or terminated early.
What does the proposed API look like?
Currently, midscene can not combine complex business logic process with ui automatic operation,so we often encounter issues like midscene can not fully complete a full process like below
Step1: open a page
Step2: click the tab
Step3: find the filter button
Step4: if has Succsss Option,click it,if not, go to another page and do some config...
like abover complex test cases,midscene can't do this fully tests ,if only depends frontend project codes,Anyone has suggestions will be appreciated,Thanks in advance~
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by searching the repository for the Agent, aiAct, and existing Playwright or YAML workflow generation paths, then map the requested business context, control flow, assertions, selectors, and execution-status reporting to current APIs. Done would require an agreed, testable scope for these capabilities rather than the broad feature list alone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, typescript, yaml
- Domain
- ai, testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100