From badd5527472e0e9cac34b736c90ef209f4ac49dd Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Thu, 5 Mar 2026 14:52:10 -0600 Subject: [PATCH] Tests: Fix DVR test after video player change. --- frontend/src/pages/__tests__/DVR.test.jsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/__tests__/DVR.test.jsx b/frontend/src/pages/__tests__/DVR.test.jsx index 2f5e5021..ae56d219 100644 --- a/frontend/src/pages/__tests__/DVR.test.jsx +++ b/frontend/src/pages/__tests__/DVR.test.jsx @@ -34,7 +34,9 @@ vi.mock('../../api'); // Mock Mantine components vi.mock('@mantine/core', () => ({ ActionIcon: ({ children, onClick }) => ( - + ), Box: ({ children }) =>
{children}
, Container: ({ children }) =>
{children}
, @@ -58,7 +60,9 @@ vi.mock('@mantine/core', () => ({ > {(data || []).map((opt) => ( - + ))} ), @@ -542,7 +546,8 @@ describe('DVRPage', () => { expect(mockShowVideo).toHaveBeenCalledWith( expect.stringContaining('stream.url'), - 'live' + 'live', + { name: 'Channel 1' } ); });