mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- 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.
883 B
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
- Install dependencies:
npm install - 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