Skip to content

Add payment and account page component tests - #2062

Merged
yusuftomilola merged 6 commits into
DistinctCodes:mainfrom
ObedChibunna:Customer-pages-(payments,-credits,-usage,-register,-login)-lack-page-level-tests-#1990
Oct 20, 2026
Merged

yusuftomilola merged 6 commits into
DistinctCodes:mainfrom
ObedChibunna:Customer-pages-(payments,-credits,-usage,-register,-login)-lack-page-level-tests-#1990

Conversation

@ObedChibunna

@ObedChibunna ObedChibunna commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

##SUMMARY
Add loading, error, empty, and success tests for the payment, credits, usage, and wallet error pages. Cover payment creation’s idempotency key and payment status updates via WebSocket with polling fallback. Ensure CI checks pass.

Adds component tests for payment, credits, usage, and wallet error pages, covering loading, error, empty, and success states. Also tests payment idempotency and WebSocket-to-polling fallback so key user flows are covered and CI can catch regressions.

Contracts checklist

Adds component coverage for payment, credits, usage, and wallet error pages, including payment creation idempotency and WebSocket-to-polling fallback. Fixes related test and build failures, and updates the contracts toolchain and lockfile to use stable Rust.
If this PR touches anything under contracts/, confirm it against the
pre-deployment security checklist before
requesting review:

  • make audit (CT-72 require_auth() coverage) passes.
  • Every amount-handling path uses checked arithmetic (CT-73) — no raw
    +/- on amounts.
  • Not applicable — this PR does not touch contracts/.

Test plan

  • Frontend lint, typecheck, component coverage (161 passed), production build, and wallet Playwright tests (2 passed).
  • Backend lint, build, unit tests (716 passed), dependency hygiene checks, and critical-level npm audit.
  • Rust formatting and contract authorization audit passed.

Local verification limits: PostgreSQL-dependent backend E2E/migration checks and Rust Clippy/tests/WASM build could not run in this environment.
CLOSES #1990

Add loading, error, empty, and success tests for the payment, credits, usage, and wallet error pages. Cover payment creation’s idempotency key and payment status updates via WebSocket with polling fallback. Ensure CI checks pass.

CLOSES DistinctCodes#1990
@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

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

@vercel

vercel Bot commented Oct 18, 2026

Copy link
Copy Markdown

@ObedChibunna is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@yusuftomilola
yusuftomilola merged commit 2ab5198 into DistinctCodes:main Oct 20, 2026
6 of 8 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.

Customer pages (payments, credits, usage, register, login) lack page-level tests

2 participants