Files
bitvid/examples/reproducers/issue-moderation-flake/README.md
T
google-labs-jules[bot]andPR0M3TH3AN 738c839302 add minimal reproducers for hashtag preferences and moderation flakiness issues
- Adds `examples/reproducers/issue-hashtag-prefs/reproduce_issue.mjs` to reproduce flaky hashtag preferences unit test.
- Adds `examples/reproducers/issue-moderation-flake/reproduce_flake.spec.ts` to reproduce flaky moderation visual test in headless mode.
- Includes README instructions for running each reproducer.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-11 12:12:30 +00:00

19 lines
866 B
Markdown

# Moderation Flakiness Reproducer
This script reproduces a visual regression test flakiness in `tests/visual/moderation.spec.ts`.
## Issue
The test case "trusted mute hide fixture annotates mute reason and can be overridden" is flaky in headless environments due to layout issues (potentially 0x0 size) causing visibility checks to fail. The assertion `await expect(showAnywayButton).toBeVisible()` was commented out in the original test.
## How to Run
From the root of the repository:
```bash
npm run build
npx playwright test -c examples/reproducers/issue-moderation-flake/playwright.config.ts
```
## Expected Outcome
- The test `examples/reproducers/issue-moderation-flake/reproduce_flake.spec.ts` should fail in headless mode if the layout issue occurs.
- If the CSS loads correctly and the environment supports the layout, it may pass (flake is resolved).