Skip to content

test: add swap submission integration test - #166

Open
Markadrian6399 wants to merge 1 commit into
stellar-vortex-protocol:mainfrom
Markadrian6399:test/75-swap-happy-path-integration
Open

test: add swap submission integration test#166
Markadrian6399 wants to merge 1 commit into
stellar-vortex-protocol:mainfrom
Markadrian6399:test/75-swap-happy-path-integration

Conversation

@Markadrian6399

Copy link
Copy Markdown

Summary

  • Add src/app/swap-flow.integration.test.tsx, an integration test wiring SwapCard + useQuote + useSwapSubmission + ToastViewport together
  • Mocks the network boundary (@/lib/api) and Freighter signing only — not the hooks under test
  • Covers: enter amount → fetch quote → submit → Freighter signs → success toast rendered via the shared toast store

Closes #75

Validation performed

  • npx vitest run src/app/swap-flow.integration.test.tsx (1 passed)
  • npm test (full suite, 140 passed)
  • npm run lint
  • npx tsc --noEmit

test: add swap submission integration test
@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

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

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.

Integration test: full swap submission happy path

1 participant