Skip to content

Commit fb8e6d8

Browse files
test(web): worked-for heading test clicks once the list is revealed (#30404)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent fcad9de commit fb8e6d8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/components/chat/MessagesTimeline.browser.test.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ describe("MessagesTimeline work rows", () => {
236236
{ container },
237237
);
238238
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" });
240242
const viewport = props.listRef.current!.getScrollableNode()!;
241243
await vi.waitFor(() =>
242244
expect(viewport.scrollHeight - viewport.clientHeight - viewport.scrollTop).toBeLessThan(2),

0 commit comments

Comments
 (0)