Skip to content

Commit 52b3965

Browse files
authored
test(repl): dismiss the recovery notice after it appears (#1545)
1 parent 4a065c1 commit 52b3965

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5230,7 +5230,8 @@ describe("resume retention and mounted retained recovery corrections", () => {
52305230
expect(retryable(failed, held.conversation, request.message)).toEqual(Ok(text));
52315231
expect(page.screen().shows("[retry]")).toBe(true);
52325232
held.host.fake.refuseSessionResume(held.session, "unknown pre-send fault", true);
5233-
yield* page.press("[X]");
5233+
yield* page.until("the first failure notice", (one) => one.shows("Click X or press Esc"));
5234+
yield* page.key("Escape");
52345235
yield* page.until("the dismissed failure", (one) => one.shows("dismissed"));
52355236
yield* page.press("[Resume queue]");
52365237
yield* page.until("the released queue", (one) => !one.shows("[Resume queue]"));

0 commit comments

Comments
 (0)