diff --git a/tests/github-pr-status.spec.ts b/tests/github-pr-status.spec.ts index a0e36675..738be287 100644 --- a/tests/github-pr-status.spec.ts +++ b/tests/github-pr-status.spec.ts @@ -104,10 +104,10 @@ test.describe('GitHub PR Status Tests', () => { expect(prData.title).toContain(headBranch); expect(prData.state).toBe('open'); - // Step 5: Wait for the PR status to be automatically updated and verify it shows the PR button + // Step 5: Wait for the PR status to be automatically updated and verify it shows the PR link // The PR status is now updated automatically, no refresh button needed - // Wait up to 25 seconds for the PR button to appear with the new format "PR #" - await expect(page.getByRole('button', { name: /^PR #\d+$/ })).toBeVisible({ timeout: 25000 }); + // Wait up to 25 seconds for the PR link to appear with the format "PR # opened" + await expect(page.getByRole('link', { name: /PR #\d+ opened/ })).toBeVisible({ timeout: 25000 }); // Step 6: Close the PR via UI // Click on Review