mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- 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]>
866 B
866 B
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:
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.tsshould 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).