mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 17:16:26 +00:00
fix(tests): update EPG test for SD username/password fields
This commit is contained in:
parent
72aad57a2d
commit
cc41ab613f
1 changed files with 3 additions and 2 deletions
|
|
@ -399,10 +399,11 @@ describe('EPG', () => {
|
|||
expect(screen.queryByTestId('input-api-key')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('shows API key input when source type requires it', () => {
|
||||
it('shows username and password inputs when source type is schedules_direct', () => {
|
||||
const epg = makeEPG({ source_type: 'schedules_direct' });
|
||||
render(<EPG {...defaultProps({ epg })} />);
|
||||
expect(screen.getByTestId('input-api-key')).toBeInTheDocument();
|
||||
expect(screen.getByTestId('input-username')).toBeInTheDocument();
|
||||
expect(screen.getByTestId('input-password')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue