The best way to control Claude Code, Codex and more from any computer or phone
test(web): the open-in picker test waits for the menu to close (#20892)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 17, 2026 at 04:00 UTC
efef7cbb19941fb6cdb245cfdeba3525b1a77d7b
1 file changed
+2
-1
apps/web/src/components/chat/OpenInPicker.browser.test.tsx
+2
-1
@@ -195,7 +195,8 @@ describe("host editor access", () => {
195
expect(menuItems().length).toBeGreaterThan(0);
196
state.allowed.delete(selected);
197
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));
200
state.allowed.add(selected);
201
await renderPicker();
202
expect(menuItems()).toHaveLength(0);