Repository navigation
Wait longer for verify results and use the issuer-name test id in Playwright tests - #288
Merged
Merged
Conversation
Against the deployed staging site with 9 workers, two Playwright tests
needed a retry:
- verifyText "issued by test issuer" used getByText('DCC did:web for
testing'), which matches both the issuer name and the issuer link once
both render, so strict mode fails. It now checks the issuer-name test id.
- The first check after clicking Verify used Playwright's 5-second
default, but /api/verify fetches DID documents, status lists and
registries and can be slower than that under parallel load. The first
post-Verify expectation in log, verifyURL and verifyText now waits up
to VERIFY_RESULT_TIMEOUT_MS (20 s, within the 30 s test timeout).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two Playwright tests needed a retry when the full suite ran against the deployed staging site (
PLAYWRIGHT_TEST_URL=https://verifierplus.staging.dccommons.org, 9 workers) during the verifier-plus 3.0.0 Lambda acceptance run. Neither was caused by the deployment; this is test hardening only. No app code changes, no skipped tests, retries unchanged.What changed and why
verifyText.spec.ts"testing vc: issued by test issuer" usedgetByText('DCC did:web for testing'). Once both the issuer name and the issuer link render, that matches two elements and strict mode fails. This case now checksgetByTestId(TestId.IssuerName)has that text; the other cases still usegetByText./api/verifyfetches DID documents, status lists and registries; on the deployed site under parallel load it can take longer than Playwright's 5-second default (slowest invocation seen 2.9 s, more under load). A newVERIFY_RESULT_TIMEOUT_MS(20 s, inside the 30 s per-test limit) intests/helpers/resultLog.tsis applied to the first expectation after clicking Verify in:log.spec.ts(the log tests, plus thetamperedandunresolvable did documenterror checks)verifyURL.spec.ts(waits for the result log before the per-line checks)verifyText.spec.ts(same/api/verifypath, same exposure)Local validation
npm test(vitest): 164 passed, 33 skipped.npm run build, thenCREDENTIAL_STORE=memory EXCHANGES=off npm start), 9 workers:--retries=0: 34 passed;Not re-run against staging; the local runs show the tests pass but don't recreate staging's slower responses.
🤖 Generated with Claude Code