docs(ci): add CI verification note to trigger Actions (#2)
CI / test (push) Successful in 47s

Reviewed-on: #2
Co-authored-by: Jaybe <master@jaybe.dev>
Co-committed-by: Jaybe <master@jaybe.dev>
This commit was merged in pull request #2.
This commit is contained in:
2025-11-14 09:45:10 +00:00
committed by jaybe
parent 1433b4fcb4
commit eb28c9fcc6
6 changed files with 128 additions and 43 deletions
+7 -3
View File
@@ -4,10 +4,14 @@ const builderUrl = '/en/builder'
test('Preview viewport toggle via keyboard (Tab + Enter/Space)', async ({ page }) => {
await page.goto(builderUrl)
await page.waitForLoadState('domcontentloaded')
// Ensure the page has focus before sending keyboard events
await page.locator('body').click({ position: { x: 1, y: 1 } })
// Tab to first button (Desktop)
await page.keyboard.press('Tab')
await expect(page.getByRole('button', { name: 'Desktop' })).toBeFocused()
// Focus the Desktop button explicitly to avoid flakiness from skip-link/initial focus
const desktopBtn = page.getByRole('button', { name: 'Desktop' })
await desktopBtn.focus()
await expect(desktopBtn).toBeFocused()
// Press Space to toggle Mobile (first ensure Desktop is selected, then move to Mobile with Tab)
await page.keyboard.press('Tab')