@devries-cameron20 / t3code-1 / commits / fb8e6d8656
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

test(web): worked-for heading test clicks once the list is revealed (#30404)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Nov 3, 2026 at 15:31 UTC fb8e6d8656a2c4ca8e089736593944cd21b4de07
1 file changed +3 -1
apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
+3 -1
@@ -236,7 +236,9 @@ describe("MessagesTimeline work rows", () => {
236 { container },
237 );
238 const heading = screen.getByRole("button", { name: /^Worked for/ });
239 - await expect.element(heading).toBeVisible();
239 + // LegendList keeps rows click-through until its initial scroll settles on animation
240 + // frames, which the fake clock below would freeze.
241 + await expect.element(heading).toHaveStyle({ pointerEvents: "auto" });
242 const viewport = props.listRef.current!.getScrollableNode()!;
243 await vi.waitFor(() =>
244 expect(viewport.scrollHeight - viewport.clientHeight - viewport.scrollTop).toBeLessThan(2),