Skip to content

Commit dbd1682

Browse files
test(web): reset the model-save mock in every composer selection test
AI-assisted; verified with the tests and tools listed above.
1 parent b193bc2 commit dbd1682

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ function Picker(props: {
109109
}
110110

111111
it("keeps a Cursor thread's stored model and options when the user re-picks its unavailable row", async () => {
112+
setup();
112113
const thread = cursorThread("thread-cursor");
113114
await using _screen = await render(<Picker thread={thread} runtime={null} />);
114115
await page.getByRole("button", { name: "Pick the model" }).click();
@@ -122,6 +123,7 @@ it("keeps a Cursor thread's stored model and options when the user re-picks its
122123
});
123124

124125
it("switches back to the thread's stored model while the session runs on another instance", async () => {
126+
setup();
125127
const thread = cursorThread("thread-cursor-handoff");
126128
const runtime = { providerInstanceId: ProviderInstanceId.make("codex") } as Parameters<
127129
typeof useComposerSelection

0 commit comments

Comments
 (0)