mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
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]>