From 195b5f3917e466496921fe9616204df6c9b132f8 Mon Sep 17 00:00:00 2001 From: npeter83 Date: Mon, 2 Nov 2026 04:01:56 +0100 Subject: [PATCH] test(playlists): walk to the row with a key, as the keyboard does --- frontend/e2e/playlists.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/e2e/playlists.spec.ts b/frontend/e2e/playlists.spec.ts index a5986390..08cc28c9 100644 --- a/frontend/e2e/playlists.spec.ts +++ b/frontend/e2e/playlists.spec.ts @@ -123,7 +123,8 @@ test.describe("acting on the selected rows", { tag: "@playlists" }, () => { }, info) => { const { videos, from } = await setUp(page, `keys ${info.project.name}`, info.project.name); const firstRow = page.locator("tbody tr").first(); - await firstRow.focus(); + await page.keyboard.press("j"); + await expect(firstRow).toBeFocused(); await page.keyboard.press("x"); await expect(box(page, videos[0]!.title)).toBeChecked(); await page.keyboard.press("Escape");