Skip to content

Commit 3404dd6

Browse files
test(mobile): verify queued edit retains live status demand
1 parent 6f3900f commit 3404dd6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎apps/mobile/src/features/threads/new-task-flow-provider.test.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ it("keeps a closing queued edit's repository state until its save is built", asy
390390
await screen.render(false);
391391
expect(screen.current.isGitRepo).toBe(false);
392392
expect(screen.current.selectedProject).toEqual(screen.projects[2]);
393+
await screen.expireIdle();
394+
expect(screen.events).not.toContain("stop:/b");
395+
await screen.emit("/b", "updated-checkout", true);
396+
expect(screen.current.isGitRepo).toBe(true);
397+
await screen.emit("/b", "updated-checkout", false);
393398
await act(async () => screen.current.cancelEditingPendingTask());
394399
expect(mocks.flushEdit).toHaveBeenCalledOnce();
395400
expect(mocks.flushEdit.mock.calls[0]![0].message).toMatchObject({

0 commit comments

Comments
 (0)