test(cli): widen TUI frame-wait bound (3s -> 10s) for loaded CI shards

vi.waitFor polls, so the bound adds zero time to green runs; ink frame
scheduling has flaked past 3s under shard CPU contention while passing
instantly in isolation.
This commit is contained in:
gsxdsm
2026-06-03 23:40:34 -07:00
parent 3b42b843ff
commit c3d3f3f464

View File

@@ -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 });