Change filter text for old and specialized programmes

This commit is contained in:
outisa
2026-09-14 20:50:54 +03:00
parent 465ce35ca0
commit a6ff2f63f7
2 changed files with 2 additions and 2 deletions
@@ -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)')
})
})