Skip to content

Commit fd65e6a

Browse files
test(web): the open-in picker test waits for the menu to close
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 812b700 commit fd65e6a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ describe("host editor access", () => {
195195
expect(menuItems().length).toBeGreaterThan(0);
196196
state.allowed.delete(selected);
197197
await renderPicker();
198-
expect(menuItems()).toHaveLength(0);
198+
// The menu unmounts after its exit animation, so wait for it rather than asserting at once.
199+
await vi.waitFor(() => expect(menuItems()).toHaveLength(0));
199200
state.allowed.add(selected);
200201
await renderPicker();
201202
expect(menuItems()).toHaveLength(0);

0 commit comments

Comments
 (0)