Skip to content

test: Implement tests for Stellar Wave component enhancements - #642

Merged
Kingsman-99 merged 4 commits into
Stellar-split:mainfrom
uchechithelmaonye-cpu:tests/stellar-wave-components
Aug 29, 2026
Merged

test: Implement tests for Stellar Wave component enhancements#642
Kingsman-99 merged 4 commits into
Stellar-split:mainfrom
uchechithelmaonye-cpu:tests/stellar-wave-components

Conversation

@uchechithelmaonye-cpu

Copy link
Copy Markdown
Contributor

Summary

Implement comprehensive test suites for four Stellar Wave component enhancements:

Tests Included

  • PaymentProgress.test.tsx: 10 tests covering progress capping, overpayment display, and amount formatting
  • PaymentBreakdownModal.test.tsx: 17 tests for fee breakdown display, interactions, and accessibility
  • PayPreviewButton.test.tsx: 13 tests for wallet connection, fee display, and error handling
  • StatusTimeline.test.tsx: 20 tests for event rendering, mobile stepper, and icon display

Test Coverage

All tests verify:

  • Component accessibility with proper ARIA attributes
  • Correct data rendering and formatting
  • User interactions and state management
  • Error handling and edge cases
  • Mobile and desktop responsive behavior

Closes #592
Closes #591
Closes #590
Closes #589

…pping at 100%

- Cap progress bar width at 100% when funded exceeds total
- Verify aria-valuenow reflects capped percentage
- Test formatting of funded and total amounts
- Ensure overpayment edge cases handled correctly
…t percentage display

- Verify breakdown table displays gross amount, protocol fee, and net
- Test percentage column renders with recipients
- Ensure percentages sum to 100% (with rounding on final row)
- Test button interactions and disabled states during confirmation
- Verify modal accessibility with proper aria attributes
…isplay

- Display estimated network fee below button using useNetworkFeeBreakdown
- Show skeleton loader during fee data retrieval
- Hide fee display when fetch fails
- Test wallet connection flow and status
- Verify fee formatting with XLM and USD equivalent
- Test error handling for wallet connection failures
- Verify each status step displays with associated icon
- Test icons positioned left of step label
- Icons include aria-hidden='true' for screen reader exclusion
- Test mobile stepper state transitions
- Verify icon styling for completed vs active steps
- Test event timeline displays correct status flow
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@uchechithelmaonye-cpu 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

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

@uchechithelmaonye-cpu is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Kingsman-99
Kingsman-99 merged commit 570ea83 into Stellar-split:main Aug 29, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants