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

This commit is contained in:
Benjamin Admin
2026-05-22 09:54:22 +02:00
parent 09f6f5a5e1
commit 3b8df0d294
+4 -5
View File
@@ -88,11 +88,10 @@ test.describe('Schulkalender — Month View', () => {
}) })
await page.goto('/schulkalender') await page.goto('/schulkalender')
await page.waitForLoadState('networkidle') await page.waitForLoadState('networkidle')
// Walk forward until we hit June 2099 (way in the future to avoid 'today'). // Assert the legend rows — using exact text to avoid colliding with
// Cheaper: assert the legend shows the two categories — content rendering // tooltips like "Tag der deutschen Einheit" that also contain 'tag'.
// is covered by the unit-level buildMonthGrid logic. await expect(page.getByText('Feiertag', { exact: true })).toBeVisible()
await expect(page.getByText('Feiertag')).toBeVisible() await expect(page.getByText('Schulferien', { exact: true })).toBeVisible()
await expect(page.getByText('Schulferien')).toBeVisible()
}) })
test('Heute button resets to current month', async ({ page }) => { test('Heute button resets to current month', async ({ page }) => {