test(playlists): a person's pause before the arrow in the keyboard drag

This commit is contained in:
2026-11-02 00:57:58 +01:00
parent d79cb528fd
commit 439f5cd67b
+3
View File
@@ -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.keyboard.press("Space");
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 said(page, /position 2/);
await page.keyboard.press("Space");