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 <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-31 09:50:50 -05:00
1 parent fa36e7cd35
commit a3615c8cc1
1 file changed
+1 -4
+1 -4
View File
@@ -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(