Skip to content

test(e2e): add Stellar wallet journey coverage for setup, backup, recovery, signing and failure recovery - #972

Merged
llinsss merged 2 commits into
DogStark:mainfrom
johnephraim949-web:feat/stellar-wallet-e2e-tests
Aug 31, 2026
Merged

test(e2e): add Stellar wallet journey coverage for setup, backup, recovery, signing and failure recovery#972
llinsss merged 2 commits into
DogStark:mainfrom
johnephraim949-web:feat/stellar-wallet-e2e-tests

Conversation

@johnephraim949-web

Copy link
Copy Markdown
Contributor

Summary

Adds deterministic Playwright end-to-end coverage for the Stellar wallet
journeys in src/pages/wallet.tsx (setup, backup, recovery, signing, pending
state, 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:
    • Wallet setup: create-wallet PIN validation (weak/mismatched), import
      secret-key format validation, and unbacked-wallet warning.
    • Wallet backup: exporting an encrypted backup and recovering from an
      incorrect PIN without losing state.
    • Wallet recovery: structured errors for malformed and incomplete backup
      files.
    • Transaction signing: client-side guards (PIN required, invalid
      destination, insufficient balance).
    • Failure recovery: an unfunded account (failed Horizon lookup) must not
      crash the wallet page.
  • tests/e2e/support/mockWallet.ts — deterministic fixtures and the
    Stellar network boundary mock (Horizon account lookups, fee stats, testnet
    friendbot). Auth + wallet state are seeded into localStorage, so no real
    backend or live Stellar network is required.
  • tests/e2e/README.md — documents the new wallet e2e coverage alongside
    the existing authentication journey.

No production code or CI configuration is changed; fixtures use only
deterministic test data.

Test plan

  • Run the full Playwright suite with npm run test:e2e.

Closes #893
Closes #902
Closes #901

…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
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

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

Learn more about application limits

@llinsss
llinsss merged commit 2d88a51 into DogStark:main Aug 31, 2026
4 of 8 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

2 participants