test(playlists): walk to the row with a key, as the keyboard does
This commit is contained in:
@@ -123,7 +123,8 @@ test.describe("acting on the selected rows", { tag: "@playlists" }, () => {
|
|||||||
}, info) => {
|
}, info) => {
|
||||||
const { videos, from } = await setUp(page, `keys ${info.project.name}`, info.project.name);
|
const { videos, from } = await setUp(page, `keys ${info.project.name}`, info.project.name);
|
||||||
const firstRow = page.locator("tbody tr").first();
|
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 page.keyboard.press("x");
|
||||||
await expect(box(page, videos[0]!.title)).toBeChecked();
|
await expect(box(page, videos[0]!.title)).toBeChecked();
|
||||||
await page.keyboard.press("Escape");
|
await page.keyboard.press("Escape");
|
||||||
|
|||||||
Reference in New Issue
Block a user