Files
bitvid/docs
google-labs-jules[bot]andPR0M3TH3AN c56238b329 Fix moderation fixture click timeout by preventing VideoCard auto-hide
The `VideoCard` component automatically hides itself if it detects no valid playback source (no URL or magnet). This caused the moderation visual test fixtures, which used dummy data without sources, to be hidden (`hidden=""` on root element) in the DOM, even though they were "visible" in terms of layout (display: block forced on inner container). This state prevented Playwright from interacting with the "Show anyway" button, causing click timeouts.

This change:
1. Updates `docs/moderation/fixtures/index.html` to provide a dummy URL for all fixture videos, ensuring the card remains visible and interactive.
2. Implements the missing `onModerationHide` handler in the fixture logic to support the full override/restore lifecycle in tests.
3. Uncomments and restores the failing assertions in `tests/visual/moderation.spec.ts`.
4. Removes `force: true` from click actions as the elements are now properly visible.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-05 23:08:55 +00:00
..
2026-01-23 02:27:15 -05:00
2025-11-03 20:48:06 -05:00
2026-01-23 02:27:15 -05:00
2026-01-30 09:13:54 -05:00