mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
Change filter text for old and specialized programmes
This commit is contained in:
@@ -6,7 +6,7 @@ export const FilterOldProgrammesToggle = ({ checked, onChange }: { checked: bool
|
||||
<FormControlLabel
|
||||
control={<Switch checked={checked} onChange={onChange} />}
|
||||
data-cy="filter-old-programmes-toggle"
|
||||
label="Filter out old and specialized programmes"
|
||||
label="Filter out programmes prior to 2017 and specialized programmes"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ test.describe('StudyProgrammeSelector', () => {
|
||||
const component = await mount(<ReduxWrapper component={<StudyProgrammeSelector />} />)
|
||||
|
||||
await expect(component).not.toContainText('Biotekniikka (ylempi)')
|
||||
await component.getByLabel('Filter out old and specialized programmes').click()
|
||||
await component.getByLabel('Filter out programmes prior to 2017 and specialized programmes').click()
|
||||
await expect(component).toContainText('Biotekniikka (ylempi)')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user