mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
Tests: Fix DVR test after video player change.
This commit is contained in:
parent
9bffd6347d
commit
badd552747
1 changed files with 8 additions and 3 deletions
|
|
@ -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' }
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue