diff --git a/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx b/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx index 71c55544c7..b4fcfd80d0 100644 --- a/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx +++ b/packages/cli/src/commands/dashboard-tui/__tests__/app.test.tsx @@ -155,7 +155,10 @@ afterEach(() => { vi.useRealTimers(); }); -async function waitForFrameContains(lastFrame: () => string | undefined, text: string, timeoutMs = 3000) { +// 10s bound: ink schedules frames on timer ticks and has flaked past 3s under +// loaded CI shards while passing instantly in isolation. vi.waitFor polls, so +// a generous bound adds zero time to passing runs. +async function waitForFrameContains(lastFrame: () => string | undefined, text: string, timeoutMs = 10_000) { await vi.waitFor(() => { expect(lastFrame() ?? "").toContain(text); }, { timeout: timeoutMs });