The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 18:30 UTC
test(web): sidebar drag test opens its folder past the shift guard (#35803)
Julius Marminge committed
Nov 12, 2026 at 18:24 UTC
5ccc65be0a2b85bccc3b394a8e9dd4c2f5ecbec3
1 file changed
+3
-1
apps/web/src/components/Sidebar.drag.browser.test.tsx
+3
-1
@@ -51,7 +51,9 @@ it("keeps the title when dragging a search result from a collapsed folder", asyn
51
});
52
const folder = page.getByRole("button", { name: /^render/ });
53
await expect.element(folder).toHaveAttribute("aria-expanded", "true");
54
- await userEvent.click(folder);
54
+ // The shift guard drops pointer presses on a row that appeared under 500ms ago; keys pass.
55
+ folder.element().focus();
56
+ await userEvent.keyboard("{Enter}");
57
await expect.element(page.getByText(second.title, { exact: true })).not.toBeInTheDocument();
58
await userEvent.fill(page.getByRole("combobox", { name: "Search threads" }), "search-target");
59
const result = page.getByRole("option", { name: /Thread search-target/ });