mui / mui/material-ui

[test] Opt out of screenshot for flaky tests

Open
#39,766 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope: code-infra test type: enhancement
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Suggested in https://github.com/mui/material-ui/pull/39711#issue-1973332553

const blacklist = [
  /^docs-(.*)(?<=NoSnap)\.png$/, // Excludes demos that we don't want
  // 'docs-system-typography',
];
  • 2. Update the blacklist to use the prefix for demos.

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

Start with the referenced test/regressions/index.js in MUI X to understand the NoSnap convention and blacklist pattern, then locate the corresponding screenshot regression setup in this repository. Update the blacklist to recognize the NoSnap prefix and verify that marked demos no longer produce screenshots.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.