Skip to content

test: add frontend dashboard, campaign, review, and wallet coverage#208

Open
brentthomas248 wants to merge 1 commit into
ChainForgee:mainfrom
brentthomas248:codex/grantfox-chainforge-103
Open

test: add frontend dashboard, campaign, review, and wallet coverage#208
brentthomas248 wants to merge 1 commit into
ChainForgee:mainfrom
brentthomas248:codex/grantfox-chainforge-103

Conversation

@brentthomas248

Copy link
Copy Markdown

Summary

  • Add dashboard package-list tests for loading, error, empty, and populated states.
  • Add campaign page tests for create, status filtering, pause/resume updates, and archive actions.
  • Add verification review tests for queue states, date filter clearing, approve/reject/resubmission actions.
  • Add WalletConnect tests for Freighter connect, connected display/disconnect, and rejected connection handling.

Closes #103

Verification

  • PASS: npm test -- --runInBand --runTestsByPath src/components/dashboard/__tests__/FilteredPackageList.test.tsx 'src/app/[locale]/campaigns/__tests__/page.test.tsx' src/components/verification-review/__tests__/ReviewQueue.test.tsx src/components/verification-review/__tests__/ReviewFiltersBar.test.tsx src/components/verification-review/__tests__/ReviewActionDialog.test.tsx src/components/__tests__/WalletConnect.test.tsx (6 suites, 20 tests)
  • PASS: npx eslint src/components/dashboard/__tests__/FilteredPackageList.test.tsx 'src/app/[locale]/campaigns/__tests__/page.test.tsx' src/components/verification-review/__tests__/ReviewQueue.test.tsx src/components/verification-review/__tests__/ReviewFiltersBar.test.tsx src/components/verification-review/__tests__/ReviewActionDialog.test.tsx src/components/__tests__/WalletConnect.test.tsx
  • PASS: git diff --cached --check
  • PASS: npm run type-check

Baseline Notes

  • npm test -- --runInBand still fails existing src/components/__tests__/EvidenceArtifactViewer.test.tsx because the test expects 1/1/2024, while the local timezone renders 12/31/2023.
  • npm run lint still fails existing production lint issues outside the added tests, including react-hooks/set-state-in-effect, no-explicit-any, and DashboardContent hook-order/compiler warnings.

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.

[MEDIUM] Add comprehensive frontend component tests for dashboard, campaigns, and wallet

1 participant