Files
bitvid/examples/reproducers/issue-moderation-ui/README.md
T
google-labs-jules[bot]andPR0M3TH3AN ebc27423cc Add minimal reproducer for moderation UI visibility bug
- Creates `examples/reproducers/issue-moderation-ui/` with a standalone Playwright script.
- Includes `repro.spec.ts` which reproduces the "Show anyway" button visibility failure.
- Adds `playwright.config.ts` for standalone execution of the reproducer.
- Documents running instructions in `README.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 12:14:15 +00:00

25 lines
1.2 KiB
Markdown

# 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, causing `toBeVisible()` assertions to fail.
- **Symptoms**: `Error: element(s) not found` when asserting visibility of the "Show anyway" button.
## How to Run
1. Navigate to the repository root.
2. Ensure dependencies are installed and the project is built:
```bash
npm ci
npm run build
npx playwright install chromium
```
3. Run the reproducer script using the provided config:
```bash
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();`.