From a3615c8cc196808a4db8fa79423ae558eae172aa Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 31 Oct 2026 09:50:50 -0500 Subject: [PATCH] test(chat): avoid optional titles in completion link checks Match the visible task identifier and retain the exact destination in the same completion paragraph for pending and resolved issue links. Co-Authored-By: Paperclip --- tests/e2e/agent-chat-projects.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/e2e/agent-chat-projects.spec.ts b/tests/e2e/agent-chat-projects.spec.ts index 74cbb12c4e3..0b43071ecd0 100644 --- a/tests/e2e/agent-chat-projects.spec.ts +++ b/tests/e2e/agent-chat-projects.spec.ts @@ -471,10 +471,7 @@ test("plan approval hands the preserved revision to an assigned project task", a .locator("p") .filter({ hasText: /^Delegated work completed:/ }); await expect(completion).toHaveCount(1); - const completedTask = completion.getByRole("link", { - name: `Issue ${task.identifier}: ${task.title}`, - exact: true, - }); + const completedTask = completion.getByRole("link").filter({ hasText: task.identifier }); await expect(completedTask).toBeVisible(); await expect(completedTask).toContainText(task.identifier); await expect(completedTask).toHaveAttribute(