Skip to content

test: add E2E scenarios for certificate retirement and verification#676

Merged
AnnabelJoe merged 1 commit into
AnnabelJoe:mainfrom
ZainabJanee:feat/596-e2e-certificate-retirement
Jun 27, 2026
Merged

test: add E2E scenarios for certificate retirement and verification#676
AnnabelJoe merged 1 commit into
AnnabelJoe:mainfrom
ZainabJanee:feat/596-e2e-certificate-retirement

Conversation

@ZainabJanee

Copy link
Copy Markdown
Contributor

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:

Scenario What it checks
Active certificate Verified result visible; no "retired" indicator shown
Retired certificate shows status retired text visible for a retired cert
Retired certificate shows chain-of-custody On-chain proof and Ed25519 sections still render
Unknown certificate ID role="alert" error shown

Fixtures include both an active and a retired certificate response, with the retired one carrying retired: true, retired_at, retired_by, and a retire_tx on-chain reference — matching the shape defined in ADR-006.

All tests mock /api/verify at 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).

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).
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@AnnabelJoe AnnabelJoe merged commit ecd9f71 into AnnabelJoe:main Jun 27, 2026
6 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add E2E scenario for certificate retirement and verification

2 participants