Skip to content

feat(tests): add integration tests for contract-frontend interaction#202

Merged
Mosas2000 merged 1 commit intomainfrom
fix/add-integration-tests
Mar 27, 2026
Merged

feat(tests): add integration tests for contract-frontend interaction#202
Mosas2000 merged 1 commit intomainfrom
fix/add-integration-tests

Conversation

@Mosas2000
Copy link
Copy Markdown
Owner

Add 26 integration tests validating contract-frontend data flow:

  • Proposal/stake/config data retrieval
  • Transaction result parsing
  • UTF-8 string handling
  • Error code mapping
  • User journey flows

Resolves #52

Add 26 integration tests validating data flow between contract and frontend:
- Proposal data flow (count, retrieval, voting state)
- Stake data flow (deposit, withdrawal, balance checks)
- Configuration data flow (min stake, contract owner)
- Transaction result parsing (success/error responses)
- UTF-8 string handling (Unicode, accented characters)
- Data validation scenarios (boundaries, max lengths)
- Sequential operation flows (user journeys)
- Error code mapping (101-NOT-FOUND, 102-INSUFFICIENT-STAKE)
- Block height integration

Resolves #52
@Mosas2000 Mosas2000 merged commit 528dd38 into main Mar 27, 2026
14 of 25 checks passed
@Mosas2000 Mosas2000 deleted the fix/add-integration-tests branch March 27, 2026 14:31
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.

Testing: No integration tests for contract-frontend interaction

1 participant