Skip to content

test: add intent acceptance integration test - #167

Open
Markadrian6399 wants to merge 1 commit into
stellar-vortex-protocol:mainfrom
Markadrian6399:test/76-accept-intent-integration
Open

test: add intent acceptance integration test#167
Markadrian6399 wants to merge 1 commit into
stellar-vortex-protocol:mainfrom
Markadrian6399:test/76-accept-intent-integration

Conversation

@Markadrian6399

Copy link
Copy Markdown

Summary

  • Add src/app/solve/accept-intent.integration.test.tsx, wiring useAcceptIntent into the /solve open-intents feed end-to-end (real SolvePage, useOpenIntents, and useAcceptIntent — nothing mocked at the hook level)
  • Mocks only the network boundary (@/lib/api), not the hooks under test
  • Covers: open intent listed → accept clicked → success toast (via ToastViewport) → list revalidates and the intent disappears from the feed

Closes #76

Validation performed

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

test: add intent acceptance 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: intent acceptance happy path

1 participant