Repository navigation
Add Admin Money Page Component Tests - #2063
Merged
Conversation
Add Vitest and Testing Library coverage for admin account, charge, refund, split, and settlement pages, including success and failure states, validation, confirmation, and money movement actions. Ensure app/admin coverage exceeds 60%. CLOSES DistinctCodes#1989
|
@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! 🚀 |
|
@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
approved these changes
Oct 20, 2026
… and test changes
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Vitest and Testing Library coverage for admin account, charge, refund, split, and settlement pages, including success and failure states, validation, confirmation, and money movement actions. Ensure app/admin coverage exceeds 60%.
Adds component tests for admin accounts, charge, credits, payments, refunds, splits, and settlements. Covers key success and failure paths, including charge confirmation, refund validation, split totals, and settlement actions. Adds missing loading and error states where needed. These checks help catch regressions in admin workflows that move money.
Contracts checklist
If this PR touches anything under
contracts/, confirm it against thepre-deployment security checklist before
requesting review:
make audit(CT-72 require_auth() coverage) passes.+/-on amounts.contracts/.Test plan
npm run test:cov — 159 tests passed; admin statement coverage: 79.41%.
npm run lint — passed with existing warnings.
npm run typecheck — passed.
NEXT_PUBLIC_API_URL=http://localhost:6000 npm run build — passed.
CI=true npm run test:e2e — 2 tests passed.
git diff --check — passed.
npm run test:cov — 159 tests passed; admin statement coverage: 79.41%.
npm run lint — passed with warnings.
npm run typecheck — passed.
npm run build — passed.
npm run test:e2e — 2 tests passed.
git diff --check — passed.
CLOSES #1989