Skip to content

Test: Implement E2E: Stellar Wallet Connection and Disconnection Flow - #519

Merged
johdanike merged 1 commit into
SwiftChainn:mainfrom
EzeanoroEbuka:test-wallet-connection
Aug 29, 2026
Merged

Test: Implement E2E: Stellar Wallet Connection and Disconnection Flow#519
johdanike merged 1 commit into
SwiftChainn:mainfrom
EzeanoroEbuka:test-wallet-connection

Conversation

@EzeanoroEbuka

Copy link
Copy Markdown
Contributor

Summary
This PR resolves #466 by implementing integration/E2E-style tests for the Stellar wallet connection flow (Freighter/Albedo) using Jest and React Testing Library.

Changes Proposed

Added __tests__/components/wallet-connection.test.tsx to test the wallet connection interface.

Mocked the useWallet hook to deterministically simulate disconnected, connected, and error states without relying on an active browser extension.

Implemented the happy path tests for triggering the connect and disconnect functions and verifying the UI updates (e.g., displaying the truncated Stellar address).

Implemented edge case coverage for when a user rejects the connection prompt or an error occurs during the Web3 handshake.

Acceptance Criteria Checklist

[x] Forked the repository and created a new branch using the designated branch name.

[x] Wrote the required tests using Jest / React Testing Library.

[x] Mocked external dependencies (Web3 wallets) to prevent flaky tests.

[x] Ensured the new tests pass reliably and meet code coverage standards.

[x] Ran the full test suite locally to verify no existing tests are broken.

Related Issues
Closes #466

How to Test
Run the Jest test suite locally to verify the wallet flow logic:
Bash

npm run test

@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@EzeanoroEbuka 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

@johdanike
johdanike merged commit 59f0072 into SwiftChainn:main Aug 29, 2026
0 of 2 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.

[Test] E2E: Stellar Wallet Connection and Disconnection Flow

2 participants