Files
bitvid/examples/reproducers/popover-flip-bug/README.md
T
google-labs-jules[bot]andPR0M3TH3AN 511d664eeb chore(ai): add minimal reproducers for known bugs
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]>
2026-01-30 12:36:16 +00:00

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.