Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

test(desktop): wait for the failed step before checking Send Diagnostics

Dongdong Chen3bb9755bce2c
diff --git a/apps/desktop/src/shell/setup-page.test.ts b/apps/desktop/src/shell/setup-page.test.ts
index 8bd3dfcb..59d28b7b 100644
--- a/apps/desktop/src/shell/setup-page.test.ts
+++ b/apps/desktop/src/shell/setup-page.test.ts
@@ -568,7 +568,8 @@ describe("setup page Send Diagnostics", () => {
it("asks before sending and lists every file", async () => {
const { run, push } = await openPage(failed({ phase: "idle" }));
- expect($("send-diagnostics").hidden).toBe(false);
+ // The failed step renders after openPage sees the installing step, so wait for it.
+ await vi.waitFor(() => expect($("send-diagnostics").hidden).toBe(false));
$("send-diagnostics").click();
await vi.waitFor(() =>
expect(run).toHaveBeenCalledWith({