mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012RYLVVUdF2J1bNeVa2uLXA
This commit is contained in:
1 parent
c80b558767
commit
f713bd4069
1 file changed
+3
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user