From 4a2355d8cf8bbde5a82a386a2cd3f6f756cd6672 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 31 Oct 2026 09:16:56 -0500 Subject: [PATCH] test(chat): retain completion identity before link metadata loads Match the specific task href within the completion message while retaining link semantics. Both hydrated issue chips and links awaiting their title now satisfy the same target identity assertion; other tasks cannot match. Co-Authored-By: Paperclip --- tests/e2e/agent-chat-projects.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/agent-chat-projects.spec.ts b/tests/e2e/agent-chat-projects.spec.ts index 54a95078987..46ea6ca7844 100644 --- a/tests/e2e/agent-chat-projects.spec.ts +++ b/tests/e2e/agent-chat-projects.spec.ts @@ -468,9 +468,9 @@ test("plan approval hands the preserved revision to an assigned project task", a expect(task.projectId).toBeTruthy(); expect(task.assigneeAgentId).toBe(f.agent.id); const completion = page.getByText("Delegated work completed:", { exact: false }); - await expect(completion.getByRole("link", { - name: `Issue ${task.identifier}: ${task.title}`, exact: true, - })).toBeVisible(); + await expect(completion.getByRole("link").and(page.locator( + `a[href="/${f.company.issuePrefix}/issues/${task.identifier}"]`, + ))).toBeVisible(); const plan = await json( await request.get(`/api/issues/${task.id}/documents/plan`), );