From fd5e3b1e5a379524c0d1651ed8273e75ffd86541 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 3 Nov 2026 15:41:26 -0600 Subject: [PATCH] test(e2e): wait for real chat thread readiness Mirror the reviewed source fixture setup barrier before the unchanged composer assertion. Preserve all catalog protocol and production inputs. Co-Authored-By: Paperclip --- tests/e2e/agent-chat-messages.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/e2e/agent-chat-messages.spec.ts b/tests/e2e/agent-chat-messages.spec.ts index ff6c8d288c6..8839f937d3b 100644 --- a/tests/e2e/agent-chat-messages.spec.ts +++ b/tests/e2e/agent-chat-messages.spec.ts @@ -8,6 +8,7 @@ test("a routine delivers a first digest, unread state, source link and replyable const f = await setup(request); try { await page.goto(`/${f.company.issuePrefix}/chats/${f.agents[1].id}`); + await expect(page.getByTestId("task-chat-thread").locator(':scope > [aria-busy="false"]')).toBeVisible({ timeout: 20_000 }); await expect(page.getByTestId("task-chat-composer-input")).toBeVisible(); const routine = await json(await request.post(`/api/companies/${f.company.id}/routines`, { data: { title: "Morning PR review", description: "proactive-digest-fixture", assigneeAgentId: f.agent.id,