Skip to content

Test: cover bulk shipment and checkout component flows - #551

Merged
johdanike merged 1 commit into
SwiftChainn:mainfrom
Agbeleshe:test-comp-bulk-shipment-and-checkout
Sep 6, 2026
Merged

Test: cover bulk shipment and checkout component flows#551
johdanike merged 1 commit into
SwiftChainn:mainfrom
Agbeleshe:test-comp-bulk-shipment-and-checkout

Conversation

@Agbeleshe

Copy link
Copy Markdown
Contributor

Summary

Adds automated component coverage for the requested bulk shipment, delivery tier, cargo insurance, and USDC escrow checkout flows.

What changed

  • Added drag-and-drop CSV mapping assertions that verify the parsed row reaches deliveriesService.createDelivery with the expected field values.
  • Added delivery form coverage for the currently implemented small, medium, and large package-size shipping tiers.
  • Added cargo insurance pricing coverage that verifies selecting coverage updates the premium and estimated escrow total.
  • Added USDC escrow confirmation coverage for delivery ID, amount, currency, and wallet address mapping.
  • Corrected stale escrow test fixtures so success/error callbacks are tested through the actual confirmation interaction.
  • Mocked the escrow service boundary to prevent Stellar SDK and network dependencies from entering the component suite.

Validation

  • Targeted Jest suites: 4 passed, 52 tests passed.
  • Touched-file ESLint: passed with no errors.
  • Full Jest suite: attempted; existing unrelated failures remain in wallet services, delivery filters, account menu, audit timeline, balance warning, and handoff QR service resolution.
  • Type-check: attempted; existing JSX errors remain in app/page.tsx involving an unclosed h2 and section.

Notes

The current repository implementation exposes package-size tiers rather than dimensional weight inputs, and cargo insurance is represented by mutually exclusive coverage radios rather than a boolean toggle. Tests follow those existing production contracts so they remain executable and stable.

Closes #498
Closes #501
Closes #503
Closes #502

@drips-wave

drips-wave Bot commented Sep 5, 2026

Copy link
Copy Markdown

@Agbeleshe 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 5df4f17 into SwiftChainn:main Sep 6, 2026
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