test(e2e): account for skip-link initial focus (double Tab before Desktop)
This commit is contained in:
@@ -7,6 +7,7 @@ test('Preview viewport toggle via keyboard (Tab + Enter/Space)', async ({ page }
|
|||||||
|
|
||||||
// Tab to first button (Desktop)
|
// Tab to first button (Desktop)
|
||||||
await page.keyboard.press('Tab')
|
await page.keyboard.press('Tab')
|
||||||
|
await page.keyboard.press('Tab')
|
||||||
await expect(page.getByRole('button', { name: 'Desktop' })).toBeFocused()
|
await expect(page.getByRole('button', { name: 'Desktop' })).toBeFocused()
|
||||||
|
|
||||||
// Press Space to toggle Mobile (first ensure Desktop is selected, then move to Mobile with Tab)
|
// Press Space to toggle Mobile (first ensure Desktop is selected, then move to Mobile with Tab)
|
||||||
|
|||||||
Reference in New Issue
Block a user