Skip to content

Commit 714cc37

Browse files
committed
test(web): park the pointer before clicking the composer notice stack peek
The stack expands on pointer enter. When the shared browser mouse was left where the stack renders, it expanded and hid the peek before the test could click it.
1 parent ca140c4 commit 714cc37

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ it("keeps only the usage limit attached while an active goal waits in the collap
7676
);
7777
const limit = page.getByText("Usage limit reached", { exact: true });
7878
const goal = page.getByText("Goal active", { exact: true });
79+
// The mouse is shared page state. Left over the stack, it expands the stack on
80+
// hover and hides the peek before the click below can reach it.
81+
await userEvent.hover(limit);
7982

8083
expect(visibleBanners()).toHaveLength(1);
8184
await expect.element(limit).toBeVisible();

0 commit comments

Comments
 (0)