diff --git a/frontend/src/components/forms/__tests__/EPG.test.jsx b/frontend/src/components/forms/__tests__/EPG.test.jsx index ce004431..e1d926b5 100644 --- a/frontend/src/components/forms/__tests__/EPG.test.jsx +++ b/frontend/src/components/forms/__tests__/EPG.test.jsx @@ -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(); - expect(screen.getByTestId('input-api-key')).toBeInTheDocument(); + expect(screen.getByTestId('input-username')).toBeInTheDocument(); + expect(screen.getByTestId('input-password')).toBeInTheDocument(); }); });