diff --git a/tests/e2e/burndown.spec.ts b/tests/e2e/burndown.spec.ts index 6368aa3..d25cca4 100644 --- a/tests/e2e/burndown.spec.ts +++ b/tests/e2e/burndown.spec.ts @@ -45,6 +45,10 @@ test.describe('Burndown', () => { test('shows current month', async ({ page }) => { const content = await page.textContent('#content'); - expect(content).toContain('May 2026'); + // The burndown page defaults to the live current month (page-burndown.ts uses new Date() + // and formatMonthLabel's toLocaleString), so derive the expected label the same way + // instead of hard-coding it — otherwise the assertion goes stale every month rollover. + const expectedMonth = new Date().toLocaleString('default', { month: 'long', year: 'numeric' }); + expect(content).toContain(expectedMonth); }); });