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 <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-11-03 15:41:26 -06:00
1 parent 904c74a17f
commit fd5e3b1e5a
1 file changed
+1
+1
View File
@@ -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,