test(e2e): select visible proof when delivery repeats its card

This commit is contained in:
Dotta committed 2026-09-27 16:49:05 -05:00
1 parent ddc9422e20
commit 92867f4173
1 file changed
+1 -1
+1 -1
View File
@@ -2421,7 +2421,7 @@ for (const execution of executions) {
if (execution.suite.id === "api-response-reading") {
// File delivery renders a card instead of an exact summary bubble.
// Prove the visible link points to the same independently checked bytes.
const proofLink = page.getByRole("link", { name: "Open api-response-proof.txt", exact: true });
const proofLink = page.getByRole("link", { name: "Open api-response-proof.txt", exact: true }).first();
await expect(proofLink).toBeVisible({ timeout: 30_000 });
await expect(proofLink).toHaveAttribute("href", `/api/attachments/${downloadedResponseProof!.attachmentId}/content`);
} else if (execution.task.flow === "warm_three_turn") {