Skip to content

Add IPFS Upload Failure and Recovery Integration Tests #649

@Emmyt24

Description

@Emmyt24

title: Add IPFS Upload Failure and Recovery Integration Tests

Description:
Test metadata upload failures, timeouts, partial successes, and retries so the token deployment flow remains predictable under IPFS degradation.

Requirements and Context:

  • Metadata is optional but operationally sensitive
  • Users need clear paths when upload succeeds but contract submission fails, or vice versa
  • Must cover upload services and deploy UI together

Suggested Execution:
Fork and Branch

  • git checkout -b test/ipfs-failure-recovery

Implement Changes::
Files to Edit:

  • frontend/src/services/IPFSService.ts - Make failure handling deterministic in tests
  • frontend/src/hooks/useIPFSUpload.ts - Preserve actionable error state
  • frontend/src/hooks/useTokenDeploy.ts - Handle mixed IPFS and contract failures cleanly

Files to Create:

  • frontend/src/test/integration/ipfs-failure-recovery.integration.test.ts - IPFS failure flow tests

Test

  • Verify upload timeout shows retryable error
  • Verify invalid metadata payloads fail before upload
  • Verify successful upload with failed contract submission preserves metadata URI for retry

Commit

  • git add .
  • git commit -m "test(integration): add ipfs failure and recovery coverage"

Guidelines:

  • Distinguish upload failure from chain submission failure
  • Keep retries explicit and observable

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions