Schulkalender test: use exact text for legend assertions
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 29s
CI / test-go-edu-search (push) Successful in 29s
CI / test-python-klausur (push) Failing after 2m39s
CI / test-python-agent-core (push) Successful in 19s
CI / test-nodejs-website (push) Successful in 22s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 29s
CI / test-go-edu-search (push) Successful in 29s
CI / test-python-klausur (push) Failing after 2m39s
CI / test-python-agent-core (push) Successful in 19s
CI / test-nodejs-website (push) Successful in 22s
This commit is contained in:
@@ -88,11 +88,10 @@ test.describe('Schulkalender — Month View', () => {
|
||||
})
|
||||
await page.goto('/schulkalender')
|
||||
await page.waitForLoadState('networkidle')
|
||||
// Walk forward until we hit June 2099 (way in the future to avoid 'today').
|
||||
// Cheaper: assert the legend shows the two categories — content rendering
|
||||
// is covered by the unit-level buildMonthGrid logic.
|
||||
await expect(page.getByText('Feiertag')).toBeVisible()
|
||||
await expect(page.getByText('Schulferien')).toBeVisible()
|
||||
// Assert the legend rows — using exact text to avoid colliding with
|
||||
// tooltips like "Tag der deutschen Einheit" that also contain 'tag'.
|
||||
await expect(page.getByText('Feiertag', { exact: true })).toBeVisible()
|
||||
await expect(page.getByText('Schulferien', { exact: true })).toBeVisible()
|
||||
})
|
||||
|
||||
test('Heute button resets to current month', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user