From d7d80782df698e97f5b770b7aa4470bb04869146 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 31 Oct 2026 09:12:31 -0500 Subject: [PATCH] test(chat): locate completion through its rendered task link The delegated completion paragraph includes a task link whose SVG status title contributes to Playwright text matching. Assert the completion prefix and exact accessible task identity together without assuming flat text. Keep the existing visibility deadline and delivery/document assertions. Co-Authored-By: Paperclip --- tests/e2e/agent-chat-projects.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/agent-chat-projects.spec.ts b/tests/e2e/agent-chat-projects.spec.ts index 89ec94ca54c..54a95078987 100644 --- a/tests/e2e/agent-chat-projects.spec.ts +++ b/tests/e2e/agent-chat-projects.spec.ts @@ -467,7 +467,10 @@ test("plan approval hands the preserved revision to an assigned project task", a expect(task.parentId).toBeNull(); expect(task.projectId).toBeTruthy(); expect(task.assigneeAgentId).toBe(f.agent.id); - await expect(page.getByText(`Delegated work completed: ${task.identifier}`, { exact: true })).toBeVisible(); + const completion = page.getByText("Delegated work completed:", { exact: false }); + await expect(completion.getByRole("link", { + name: `Issue ${task.identifier}: ${task.title}`, exact: true, + })).toBeVisible(); const plan = await json( await request.get(`/api/issues/${task.id}/documents/plan`), );