Skip to content

Commit 7e0758b

Browse files
test(web): wait for Preparing machine before checking the retried open
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 2b7d6c3 commit 7e0758b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ describe("useDraftEnvironmentRouting", () => {
205205

206206
// Re-arming Auto retries the failed open.
207207
await userEvent.click(screen.getByRole("button", { name: "Auto balance" }));
208-
expect(opened()).toEqual([machineA, machineB, machineB]);
209208
await expect.element(screen.getByText("Preparing machine")).toBeInTheDocument();
209+
expect(opened()).toEqual([machineA, machineB, machineB]);
210210
});
211211

212212
it("keeps a machine pin set elsewhere while an Auto open is still in flight", async () => {

0 commit comments

Comments
 (0)