Skip to content

test(wizard): implement e2e integration flow tests - #588

Merged
Tybravo merged 1 commit into
Tybravo:mainfrom
johdanike:test/441-wizard-flow
Aug 31, 2026
Merged

test(wizard): implement e2e integration flow tests#588
Tybravo merged 1 commit into
Tybravo:mainfrom
johdanike:test/441-wizard-flow

Conversation

@johdanike

@johdanike johdanike commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🎯 Goal

Test the navigation logic and ensure formData persistence across all wizard steps from initialization to the final review screen.

📋 Technical Scope & Changes

  • Created wizard-flow.test.tsx.
  • Implemented an integration testing approach using the actual useWizardStore rather than a mock.
  • Created dummy representations of Steps 1-3 to simulate user interactions without triggering complex browser APIs (like drag-and-drop or FileReader).
  • Rendered the real ReviewSubmitStep at Step 4 to assert that data inputted in previous steps correctly renders in the final DOM.
  • Added a beforeEach block to reset the Zustand store state, preventing test leakage.
  • Mocked @stellar/freighter-api and verificationService to prevent CI hanging on blockchain calls.

✅ Acceptance Criteria

  • Use React Testing Library to click through step 1 to step 4.
  • Assert data is carried over in the DOM and the Zustand store.
  • Tests pass in CI. (Pending)

Closes #441

Adds tests verifying navigation and data persistence across the complete verification wizard. Utilizes the real Zustand store to guarantee accurate state tracking while mocking complex DOM inputs (file uploads) and Freighter API dependencies to ensure stable CI runs.
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

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

@Tybravo

Tybravo commented Aug 28, 2026

Copy link
Copy Markdown
Owner

@johdanike
Please fix the CI build and check to pass. Thank you

@Tybravo
Tybravo merged commit 9b6308e into Tybravo:main Aug 31, 2026
1 check failed
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.

[Frontend] [Testing] Unit Testing for complete Verification Wizard flow (End-to-End mock)

2 participants