web-infra-dev / web-infra-dev/midscene
[Feature]: I hope you can support global assertions in your YAML scripts.
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?
I'm a web UI tester, and I'd like to be able to detect common issues like font glitches and image obstructions on every page by adding global assertions to the YAML file, without having to add similar descriptions to each assertion statement.
What does the proposed API look like?
page:
url: https://www.bing.com
publicAIAssert: There are no obvious font obstructions, image loading errors, or error messages on the page.
tasks:
- name: Search for weather
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 identified in the issue. Start by locating the YAML script handling and assertion execution paths, then determine how the proposed page.publicAIAssert field should apply globally; done means the field is accepted and its assertion runs across the relevant pages without repeating it in each task.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100