@devries-cameron20 / t3code Mirror · read-only / commits / 95cb068c10
Fork 0

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 ignores a fading row clone after folder collapse (#35817)

Julius Marminge committed Nov 12, 2026 at 18:51 UTC 95cb068c10a6cf0b33eed0a0cab3b298763fe852
1 file changed +4 -1
apps/web/src/components/Sidebar.drag.browser.test.tsx
+4 -1
@@ -51,10 +51,13 @@ 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 + // A removed row fades out as a clone without its test id, so match the live row only.
55 + const secondRow = page.getByTestId("sidebar-row-folder").filter({ hasText: second.title });
56 + await expect.element(secondRow).toBeInTheDocument();
57 // The shift guard drops pointer presses on a row that appeared under 500ms ago; keys pass.
58 folder.element().focus();
59 await userEvent.keyboard("{Enter}");
57 - await expect.element(page.getByText(second.title, { exact: true })).not.toBeInTheDocument();
60 + await expect.element(secondRow).not.toBeInTheDocument();
61 await userEvent.fill(page.getByRole("combobox", { name: "Search threads" }), "search-target");
62 const result = page.getByRole("option", { name: /Thread search-target/ });
63 await expect.element(result).toBeVisible();