Skip to content

Commit 73598a6

Browse files
test(web): reset palette scope mock in every composition test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c7e32d7 commit 73598a6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/web/src/components/CommandPalette.composition.browser.test.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ describe.each(["repository", "folder", "destination"] as const)("add-project %s"
112112
{ isComposing: true, keyCode: 13 },
113113
{ isComposing: false, keyCode: 229 },
114114
])("keeps Enter in the input during composition: %j", async (composition) => {
115+
setup();
115116
await using _screen = await render(<CommandPalette>{null}</CommandPalette>);
116117
await act(() => openCommandPalette({ open: "add-project" }));
117118
await page.getByText(step === "folder" ? "Local folder" : "Git URL", { exact: true }).click();
@@ -178,6 +179,7 @@ it.each([
178179
);
179180

180181
it("keeps the caret in place when an edit briefly makes the folder path not a path", async () => {
182+
setup();
181183
await using _screen = await render(<CommandPalette>{null}</CommandPalette>);
182184
await act(() => openCommandPalette({ open: "add-project" }));
183185
await page.getByText("Local folder", { exact: true }).click();

0 commit comments

Comments
 (0)