mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 19:02:28 +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.
18 lines
883 B
Markdown
18 lines
883 B
Markdown
# 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
|
|
```
|