diff --git a/e2e/hours.spec.ts b/e2e/hours.spec.ts index dffef6f..cc33979 100644 --- a/e2e/hours.spec.ts +++ b/e2e/hours.spec.ts @@ -87,6 +87,14 @@ test.describe('entering total hours', () => { await expect(dayInput(page, MONDAY)).toHaveValue('6:45'); void user; }); + + test('Tab moves straight to the next day, skipping the mode buttons', async ({ page, user }) => { + await page.goto('/'); + await dayInput(page, MONDAY).focus(); + await page.keyboard.press('Tab'); + await expect(dayInput(page, TUE)).toBeFocused(); + void user; + }); }); test.describe('start–end ranges', () => { diff --git a/frontend/components/DayRow.tsx b/frontend/components/DayRow.tsx index 1c030fb..f6953f0 100644 --- a/frontend/components/DayRow.tsx +++ b/frontend/components/DayRow.tsx @@ -46,6 +46,8 @@ export function DayRow({ date, entry, worked, target, isToday, onChange }: Props