diff --git a/studio-v2/e2e/schulkalender.spec.ts b/studio-v2/e2e/schulkalender.spec.ts index 305fba5..f2c9c2e 100644 --- a/studio-v2/e2e/schulkalender.spec.ts +++ b/studio-v2/e2e/schulkalender.spec.ts @@ -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 }) => {