mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Added reproducer for Moderation UI visibility bug in `examples/reproducers/issue-moderation-visibility`. - Added reproducer for Popover viewport bug in `examples/reproducers/issue-popover-viewport`. - Added `examples/reproducers/playwright.config.ts` to support running these reproducers with a local web server serving the repo root. - Verified that both reproducers successfully fail as expected in the current environment. Co-authored-by: PR0M3TH3AN <[email protected]>
Reproducer for Moderation UI Visibility Bug
This reproducer demonstrates the issue where the "Show anyway" button and related moderation badges fail to render or be visible in the test environment (headless mode), despite logic suggesting they should be present.
Issue Description
In tests/visual/moderation.spec.ts, several assertions are commented out because expect(showAnywayButton).toBeVisible() fails or clicking the button times out.
How to Run
-
Build the project (specifically CSS):
npm run build -
Run the reproducer test (using the repro-specific config):
npx playwright test -c examples/reproducers/playwright.config.ts examples/reproducers/issue-moderation-visibility/repro.spec.ts
Expected Outcome
The test should fail at await expect(showAnywayButton).toBeVisible(); or timeout.