test(playlists): a person's pause before the arrow in the keyboard drag
This commit is contained in:
@@ -201,6 +201,9 @@ test.describe("dragging onto a list", { tag: "@playlists" }, () => {
|
|||||||
await page.getByRole("button", { name: `Reorder “${videos[0]!.title}”`, exact: false }).focus();
|
await page.getByRole("button", { name: `Reorder “${videos[0]!.title}”`, exact: false }).focus();
|
||||||
await page.keyboard.press("Space");
|
await page.keyboard.press("Space");
|
||||||
await said(page, /picked up/i);
|
await said(page, /picked up/i);
|
||||||
|
// A person's pause: dnd-kit drops an arrow pressed before it has measured the lifted row, which
|
||||||
|
// nothing on the page announces (11 of 31 runs without it, none of 31 with it).
|
||||||
|
await page.waitForTimeout(300);
|
||||||
await page.keyboard.press("ArrowDown");
|
await page.keyboard.press("ArrowDown");
|
||||||
await said(page, /position 2/);
|
await said(page, /position 2/);
|
||||||
await page.keyboard.press("Space");
|
await page.keyboard.press("Space");
|
||||||
|
|||||||
Reference in New Issue
Block a user