web-infra-dev / web-infra-dev/midscene

[Feature]: I hope you can support global assertions in your YAML scripts.

Open
#2,898 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.