test(e2e): add Stellar wallet journey coverage for setup, backup, recovery, signing and failure recovery - #972
Merged
llinsss merged 2 commits intoAug 31, 2026
Conversation
…ilure-recovery journeys Add deterministic Playwright coverage for src/pages/wallet.tsx covering wallet setup (PIN/secret-key validation), encrypted backup export and PIN-failure recovery, backup restore (malformed/incomplete fixtures), transaction signing client-side guards, and unfunded-account failure recovery. The Stellar network boundary (Horizon account lookups, fee stats, friendbot) is mocked via support/mockWallet.ts and auth + wallet state are seeded into localStorage so no real backend or live network is required. Closes DogStark#901
|
@johnephraim949-web 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
Adds deterministic Playwright end-to-end coverage for the Stellar wallet
journeys in
src/pages/wallet.tsx(setup, backup, recovery, signing, pendingstate, and failure recovery) so the many wallet boundaries that were previously
unprotected by automated tests are now guarded.
What changed
tests/e2e/wallet.spec.ts— new e2e suite covering:secret-key format validation, and unbacked-wallet warning.
incorrect PIN without losing state.
files.
destination, insufficient balance).
crash the wallet page.
tests/e2e/support/mockWallet.ts— deterministic fixtures and theStellar network boundary mock (Horizon account lookups, fee stats, testnet
friendbot). Auth + wallet state are seeded into
localStorage, so no realbackend or live Stellar network is required.
tests/e2e/README.md— documents the new wallet e2e coverage alongsidethe existing authentication journey.
No production code or CI configuration is changed; fixtures use only
deterministic test data.
Test plan
npm run test:e2e.Closes #893
Closes #902
Closes #901