Skip to content

Commit 6eae931

Browse files
author
Your Name
committed
fix: failed e2e test
1 parent aecf787 commit 6eae931

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/e2e/interactions.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -282,30 +282,30 @@ test.describe('Keyboard Shortcuts', () => {
282282
await expect(page).toHaveURL(/\/vue/)
283283
})
284284

285-
test('"," navigates to /settings', async ({ page, goto }) => {
285+
test('"s" navigates to /settings', async ({ page, goto }) => {
286286
await goto('/compare', { waitUntil: 'hydration' })
287287

288-
await page.keyboard.press(',')
288+
await page.keyboard.press('s')
289289

290290
await expect(page).toHaveURL(/\/settings/)
291291
})
292292

293-
test('"," does not navigate when any modifier key is pressed', async ({ page, goto }) => {
293+
test('"s" does not navigate when any modifier key is pressed', async ({ page, goto }) => {
294294
await goto('/settings', { waitUntil: 'hydration' })
295295

296296
const searchInput = page.locator('#header-search')
297297
await searchInput.focus()
298298
await expect(searchInput).toBeFocused()
299299

300-
await page.keyboard.press('Shift+,')
300+
await page.keyboard.press('Shift+s')
301301
await expect(page).toHaveURL(/\/settings/)
302-
await page.keyboard.press('Control+,')
302+
await page.keyboard.press('Control+s')
303303
await expect(page).toHaveURL(/\/settings/)
304-
await page.keyboard.press('Alt+,')
304+
await page.keyboard.press('Alt+s')
305305
await expect(page).toHaveURL(/\/settings/)
306-
await page.keyboard.press('Meta+,')
306+
await page.keyboard.press('Meta+s')
307307
await expect(page).toHaveURL(/\/settings/)
308-
await page.keyboard.press('ControlOrMeta+Shift+,')
308+
await page.keyboard.press('ControlOrMeta+Shift+s')
309309
await expect(page).toHaveURL(/\/settings/)
310310
})
311311
})
@@ -317,13 +317,13 @@ test.describe('Keyboard Shortcuts disabled', () => {
317317
})
318318
})
319319

320-
test('"," (header) does not navigate to /settings when shortcuts are disabled', async ({
320+
test('"s" (header) does not navigate to /settings when shortcuts are disabled', async ({
321321
page,
322322
goto,
323323
}) => {
324324
await goto('/compare', { waitUntil: 'hydration' })
325325

326-
await page.keyboard.press(',')
326+
await page.keyboard.press('s')
327327

328328
await expect(page).toHaveURL(/\/compare/)
329329
})

0 commit comments

Comments
 (0)