mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Moderation UI "Show Anyway" Button Visibility Issue Reproducer
This reproducer demonstrates the issue where the "Show anyway" button in the moderation UI is not visible (or not interactable) in the test environment, even though the logic seems correct.
Issue Description
- Known Issue:
KNOWN_ISSUES.md: Moderation UI (tests/visual/moderation.spec.ts): The "Show anyway" button and related moderation badges fail to render in the test environment, causingtoBeVisible()assertions to fail. - Symptoms:
Error: element(s) not foundwhen asserting visibility of the "Show anyway" button.
How to Run
- Navigate to the repository root.
- Ensure dependencies are installed and the project is built:
npm ci npm run build npx playwright install chromium - Run the reproducer script using the provided config:
npx playwright test -c examples/reproducers/issue-moderation-ui/playwright.config.ts
Expected Output
The test repro: show anyway override button visibility should fail with a timeout or "element not found" error on the assertion await expect(showAnywayButton).toBeVisible();.