Tests: Fix DVR test after video player change.

This commit is contained in:
SergeantPanda 2026-03-05 14:52:10 -06:00
parent 9bffd6347d
commit badd552747

View file

@ -34,7 +34,9 @@ vi.mock('../../api');
// Mock Mantine components
vi.mock('@mantine/core', () => ({
ActionIcon: ({ children, onClick }) => (
<button data-testid="action-icon" onClick={onClick}>{children}</button>
<button data-testid="action-icon" onClick={onClick}>
{children}
</button>
),
Box: ({ children }) => <div data-testid="box">{children}</div>,
Container: ({ children }) => <div data-testid="container">{children}</div>,
@ -58,7 +60,9 @@ vi.mock('@mantine/core', () => ({
>
<option value="">{placeholder}</option>
{(data || []).map((opt) => (
<option key={opt.value} value={opt.value}>{opt.label}</option>
<option key={opt.value} value={opt.value}>
{opt.label}
</option>
))}
</select>
),
@ -542,7 +546,8 @@ describe('DVRPage', () => {
expect(mockShowVideo).toHaveBeenCalledWith(
expect.stringContaining('stream.url'),
'live'
'live',
{ name: 'Channel 1' }
);
});