test(playlists): walk to the row with a key, as the keyboard does

This commit is contained in:
2026-11-02 04:01:56 +01:00
parent 1a1e9d9542
commit 195b5f3917
+2 -1
View File
@@ -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");