test: add E2E scenarios for certificate retirement and verification#676
Merged
AnnabelJoe merged 1 commit intoJun 27, 2026
Merged
Conversation
Closes AnnabelJoe#596 Adds apps/web/e2e/retirement.spec.ts covering: - Active certificate shows no retirement indicator - Retired certificate shows retirement status - Retired certificate still shows full chain-of-custody proof - Unknown certificate ID shows error state All tests mock /api/verify at the network layer and follow the retirement model defined in ADR-006 (contract-managed burn).
|
@ZainabJanee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
Closes #596
Adds an E2E test suite for the full certificate retirement and post-retirement verification flow.
Changes
apps/web/e2e/retirement.spec.ts(new file)Four scenarios under
Certificate retirement — verifier UI:retiredtext visible for a retired certrole="alert"error shownFixtures include both an active and a retired certificate response, with the retired one carrying
retired: true,retired_at,retired_by, and aretire_txon-chain reference — matching the shape defined in ADR-006.All tests mock
/api/verifyat the network layer; no live Stellar network required.Tested
Mocked API layer; compatible with all five Playwright projects added in #675 (Desktop Chrome/Firefox/Safari, Pixel 5, iPhone 13).