Skip to content

Test/add high risk flow coverage#63

Merged
Naomi-Gift merged 3 commits into
HubDApp:mainfrom
Prz-droid:test/add-high-risk-flow-coverage
Jun 2, 2026
Merged

Test/add high risk flow coverage#63
Naomi-Gift merged 3 commits into
HubDApp:mainfrom
Prz-droid:test/add-high-risk-flow-coverage

Conversation

@Prz-droid
Copy link
Copy Markdown
Contributor

close #54
close #50

ReinaMaze and others added 3 commits June 2, 2026 01:19
- Regenerated pnpm lockfile with proper native dependency resolution
- Added @rolldown/binding-win32-x64-msvc for Vitest build tools
- npm test now runs successfully (32 tests passing)
- Updated README with Node.js version requirements (18+ LTS)
- Added pnpm installation guidance and native dependency handling docs
- All 4 test files passing with Vitest v4.1.8
…rvice

High-Risk Flow Tests:
- Add Discover page tests covering loading, results, empty state, filtering, and pagination
- Add Submit page tests verifying wallet gating and form validation
- Add Admin page tests verifying authorization and request management
- Add Review service tests with success/error paths
- Add Soroban service tests with mocks for wallet/RPC behavior
- Add Wallet service tests covering connection and transaction signing

Verification Service Implementation:
- Create persistent VerificationService with localStorage backing
- Submit requests return tracking ID and PENDING status
- GetVerificationStatus returns actual status, not mock values
- Admin approve/reject updates persisted state
- Admin can distinguish between no request (NONE) vs rejected (REJECTED)
- Track request history with submission/update timestamps and user info
- Prevent duplicate pending requests
- Support resubmission after rejection via reset
- Provide admin statistics and pending request list

Service Integration:
- Update soroban.service to delegate verification to new service
- Remove hardcoded parseInt(projectId, 36) % 3 mock logic
- Maintain backward compatibility with error handling

Tests:
- Verification service: 28 tests passing
- Service mocks wallet/RPC interactions properly
- Clear distinction between NONE/PENDING/VERIFIED/REJECTED states
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@Prz-droid 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

@Naomi-Gift Naomi-Gift merged commit 2bd9606 into HubDApp:main Jun 2, 2026
1 check failed
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.

Add automated coverage for critical app flows Make verification requests and statuses deterministic and persistent

3 participants