test(e2e): account for skip-link initial focus (double Tab before Desktop)

This commit is contained in:
2025-11-14 18:23:29 +09:00
parent d4650b6f61
commit 335389cd1f
+1
View File
@@ -7,6 +7,7 @@ test('Preview viewport toggle via keyboard (Tab + Enter/Space)', async ({ page }
// Tab to first button (Desktop)
await page.keyboard.press('Tab')
await page.keyboard.press('Tab')
await expect(page.getByRole('button', { name: 'Desktop' })).toBeFocused()
// Press Space to toggle Mobile (first ensure Desktop is selected, then move to Mobile with Tab)