Files
bitvid/examples/reproducers/moderation-bug-repro.md
T
google-labs-jules[bot] d3b2c46775 feat: add minimal reproducers for known bugs
- Add `examples/reproducers/popover-bug-repro.spec.ts` for ReferenceError in popover tests.
- Add `examples/reproducers/moderation-bug-repro.spec.ts` for "Show anyway" button visibility.
- Add `examples/reproducers/sidebar-bug-repro.spec.ts` for mobile sidebar layout margin mismatch.
- Add `examples/reproducers/login-modal-bug-repro.spec.ts` for login modal error visibility.
- Include markdown documentation for each reproducer.
2026-01-22 12:41:46 +00:00

883 B

Moderation UI Bug

Bug Description

The "Show anyway" button in the moderation UI fails to render in the test environment, causing toBeVisible() assertions to fail. This is observed in tests/visual/moderation.spec.ts. The logic for creating the button appears correct (allowOverride is true), but the button element is not found in the DOM during the test execution. This might be due to a race condition in the test fixture's state initialization or an environment-specific rendering issue.

Steps to Reproduce

  1. Install dependencies: npm install
  2. Run the reproducer script: npx playwright test examples/reproducers/moderation-bug-repro.spec.ts

Logs

Error: expect(locator).toBeVisible() failed
Locator: locator('[data-test-id="show-anyway"]').getByRole('button', { name: 'Show anyway' })
Expected: visible
Timeout: 5000ms
Error: element(s) not found