From f713bd4069e65795bc9c9ec8d145159bf2f764f6 Mon Sep 17 00:00:00 2001 From: Andrew Beveridge Date: Wed, 11 Nov 2026 14:41:29 -0500 Subject: [PATCH] test(e2e): tenant happy path targets its own job's review link Tenant portals are now shared, so other runs' jobs are listed too. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012RYLVVUdF2J1bNeVa2uLXA --- frontend/e2e/production/tenant-happy-path.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/e2e/production/tenant-happy-path.spec.ts b/frontend/e2e/production/tenant-happy-path.spec.ts index 7a205836..dd425896 100644 --- a/frontend/e2e/production/tenant-happy-path.spec.ts +++ b/frontend/e2e/production/tenant-happy-path.spec.ts @@ -181,7 +181,9 @@ test.describe(`Tenant Portal Happy Path — ${TENANT_ID}`, () => { let reviewLink = null; const reviewDeadline = Date.now() + T.transcription; while (Date.now() < reviewDeadline) { - const link = page.getByRole('link', { name: /review lyrics/i }).first(); + // Tenant portals are shared workspaces: other runs' jobs are listed too, + // so target THIS run's job by id rather than the first Review link. + const link = page.locator(`a[href*="#/${createdJobId}"][href$="/review"]`).first(); // waitFor (not instant isVisible) so the client-side job-list fetch has // time to render each iteration; reload + retry if not ready yet. try {