Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions desktop/tests/e2e/community-rail.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1358,8 +1358,14 @@ test.describe("community rail", () => {
}),
);
}, `community-rail-button-${COMMUNITY_B.id}`);

// KeyboardSensor attaches its document keydown listener on the next timer
// tick, after the drag has already become active.
await page.evaluate(() => new Promise((resolve) => setTimeout(resolve, 0)));

// ArrowUp moves the active item one slot up.
await page.keyboard.press("ArrowUp");

// Space drops the item — same synthetic dispatch for consistency.
await page.evaluate((testId) => {
const el = document.querySelector(`[data-testid="${testId}"]`);
Expand Down