fix(tests): update EPG test for SD username/password fields

This commit is contained in:
mwhit 2026-05-17 05:52:17 +00:00
parent 72aad57a2d
commit cc41ab613f

View file

@ -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();
});
});