Skip to content

fix: add test coverage, a11y feedback for buttons (#420-#423) - #539

Merged
chonilius merged 1 commit into
MergeFi:mainfrom
chinoyenmose:fix/test-coverage-a11y-420-421-422-423
Sep 25, 2026
Merged

chonilius merged 1 commit into
MergeFi:mainfrom
chinoyenmose:fix/test-coverage-a11y-420-421-422-423

Conversation

@chinoyenmose

Copy link
Copy Markdown
Contributor

Closes #420
Closes #421
Closes #422
Closes #423

Summary

#420 — validateStellarNetwork test coverage

  • Added 8 test cases for validateStellarNetwork in env.test.ts
  • Covers: accepts TESTNET/PUBLIC, rejects undefined/empty, rejects near-misses (MAINNET, public, testnet, devnet)

#421 — Button variant and size prop tests

  • Added 7 test cases for variant and size props in Button.test.tsx
  • Covers: all 4 variants (primary/secondary/ghost/outline), all 3 sizes (sm/md/lg)

#422 — Success notice with aria-live feedback

  • Added role="status" aria-live="polite" success notices to both MilestoneFundButton and PoolDepositButton
  • Follows the same pattern as IssueActions (the established pattern in the codebase)

#423 — GFM table rendering test

  • Added test rendering a GFM table and asserting it produces real <table>/<thead>/<tbody>/<th>/<td> elements with styling classes

How to test

  • npx jest --testPathPatterns="env.test|Button.test|BountyDescription.test" --no-coverage
  • All 40 tests pass

…i#423)

- MergeFi#420: Add validateStellarNetwork tests (accepts TESTNET/PUBLIC, rejects unset/empty/near-misses)
- MergeFi#421: Add Button variant and size prop tests (primary/secondary/ghost/outline, sm/md/lg)
- MergeFi#422: Add success notice with role=status aria-live to MilestoneFundButton and PoolDepositButton
- MergeFi#423: Add GFM table rendering test in BountyDescription.test.tsx

Closes MergeFi#420, MergeFi#421, MergeFi#422, MergeFi#423
@vercel

vercel Bot commented Sep 25, 2026

Copy link
Copy Markdown

@chinoyenmose is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 25, 2026

Copy link
Copy Markdown

@chinoyenmose 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

@chonilius
chonilius merged commit 1ec46fe into MergeFi:main Sep 25, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment