Skip to content

test: add coverage for RecentTransactions, ImageGallery, PdfViewerModal and SetPriceAlertModal (closes #919 #920 #922 #923) - #973

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Penielka:test/issues-919-920-922-923
Aug 29, 2026
Merged

test: add coverage for RecentTransactions, ImageGallery, PdfViewerModal and SetPriceAlertModal (closes #919 #920 #922 #923)#973
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Penielka:test/issues-919-920-922-923

Conversation

@Penielka

Copy link
Copy Markdown
Contributor

Summary

Adds unit tests for four previously untested components in the Stellar Wave testing program. This closes the remaining test-coverage issues assigned to me.

Issues Fixed

Changes

  • src/components/dashboard/__tests__/RecentTransactions.test.tsx — verifies the populated transaction list renders with correctly formatted amounts, direction signs, token counts, type labels, dates and statuses.
  • src/components/property/__tests__/ImageGallery.test.tsx — covers thumbnail selection, lightbox open/close, next/prev (with wrap), keyboard Escape close, and empty-image placeholder handling.
  • src/components/property/__tests__/PdfViewerModal.test.tsx — covers modal shell, close behavior, document url passing, page rendering, and a resilient/error document state (react-pdf mocked).
  • src/components/property/__tests__/SetPriceAlertModal.test.tsx — covers invalid/empty price handling (submit disabled), successful submit with alert type / target price / email flag, alert-type switching, cancel/close, and existing-alert pre-fill.

All 32 tests across the 4 new suites pass locally via npm test, and the new files are clean under ESLint (--max-warnings=0).

Verification

  • pnpm exec jest <the four new test files> → 4 suites / 32 tests passing
  • pnpm exec eslint <the four new test files> → no errors or warnings

…al, SetPriceAlertModal

Add unit tests for four previously untested components, closing the
test-coverage issues MettaChain#919, MettaChain#920, MettaChain#922 and MettaChain#923 in the Stellar Wave program.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

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

@nanaf6203-bit
nanaf6203-bit merged commit 50ecba7 into MettaChain:main Aug 29, 2026
2 of 5 checks passed
@github-actions

Copy link
Copy Markdown

🔒 Preview Environment Destroyed

The preview environment for this PR has been torn down.

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