Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/e2e/burndown.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Loading