Skip to content

Commit 26e4ea6

Browse files
committed
Wait for the settled Sidekick recovery fallback
1 parent 771e439 commit 26e4ea6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎packages/cli/tests/repl-sidekick-recovery.test.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5282,10 +5282,12 @@ describe("resume retention and mounted retained recovery corrections", () => {
52825282
yield* page.press("[Use saved instruction]");
52835283
yield* intoComposer(page);
52845284
yield* page.key("Enter");
5285-
yield* page.until("saved recovery failure", (one) => one.shows("unknown recovery fault"));
5285+
const failed = yield* page.until(
5286+
"the saved recovery failure with local fallback",
5287+
(one) => one.shows("unknown recovery fault") && one.shows("[Start new chat]"),
5288+
);
52865289
expect(held.host.fake.prompts).toHaveLength(prompts);
5287-
expect(page.screen().shows(savedText)).toBe(true);
5288-
expect(page.screen().shows("[Start new chat]")).toBe(true);
5290+
expect(composerHolds(failed, savedText)).toBe(true);
52895291
});
52905292

52915293
it("refuses Retry when the resumed native identity differs", function* () {

0 commit comments

Comments
 (0)