mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 10:22:25 +00:00
Added minimal reproducers for: - Popover flip bug (Playwright) - VideoCard block action bug (Node.js) Reproducers are located in `examples/reproducers/`. Co-authored-by: PR0M3TH3AN <[email protected]>
28 lines
775 B
Markdown
28 lines
775 B
Markdown
# Popover Flip Bug Reproducer
|
|
|
|
This reproducer demonstrates a bug where the popover fails to flip to the top when the bottom viewport space is restricted.
|
|
|
|
## Running the Reproducer
|
|
|
|
1. Ensure dependencies are installed:
|
|
```bash
|
|
npm ci
|
|
npx playwright install chromium
|
|
```
|
|
|
|
2. Build the CSS (required for the test page):
|
|
```bash
|
|
npm run build:css
|
|
```
|
|
|
|
3. Run the Playwright test using the reproducer config:
|
|
```bash
|
|
npx playwright test -c examples/reproducers/playwright.config.ts examples/reproducers/popover-flip-bug/repro.spec.ts
|
|
```
|
|
|
|
## Expected Behavior
|
|
|
|
The test should FAIL with an assertion error similar to:
|
|
`Error: expect(received).toBeLessThanOrEqual(expected)`
|
|
indicating that the popover's bottom coordinate is outside the viewport.
|