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
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:
Suggested Execution:
Fork and Branch
git checkout -b test/ipfs-failure-recoveryImplement Changes::
Files to Edit:
frontend/src/services/IPFSService.ts- Make failure handling deterministic in testsfrontend/src/hooks/useIPFSUpload.ts- Preserve actionable error statefrontend/src/hooks/useTokenDeploy.ts- Handle mixed IPFS and contract failures cleanlyFiles to Create:
frontend/src/test/integration/ipfs-failure-recovery.integration.test.ts- IPFS failure flow testsTest
Commit
git add .git commit -m "test(integration): add ipfs failure and recovery coverage"Guidelines: