Skip to content

Commit 920ffcd

Browse files
t3dotggclaude
andauthored
test(web): OpenInPicker announcement test no longer hears the previous test (#33139)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent 51675e0 commit 920ffcd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ describe("remote editor links", () => {
194194
await using fixture = await setup();
195195
const { screen, pressOpenFavorite, FavoriteEditorFallback } = fixture;
196196
state.remote = { mode: "remote-links", host: { kind: "ssh-alias", host: "sol" } };
197+
// A successful open would announce on a real timer that fires in the next test.
198+
state.openUrl.mockResolvedValueOnce(false);
197199
await act(async () => screen.rerender(<FavoriteEditorFallback />));
198200

199201
expect((await pressOpenFavorite()).defaultPrevented).toBe(true);

0 commit comments

Comments
 (0)