PdfViewerModal has no tests: document preview state is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
PdfViewerModal (src/components/property/PdfViewerModal.tsx) previews property documents (PDFs). It has no tests. A regression that breaks document loading or modal close ships silently in the document section.
Proposal
- Add a spec covering modal open/close and document load/error states (with a stubbed document source).
Acceptance criteria
- The spec covers the modal and document states; it passes via
npm test.
Getting started
src/components/property/PdfViewerModal.tsx
src/components/property/__tests__/CurrencyToggle.test.tsx — the pattern
Commands: npm test.
Good first files to read: src/components/property/PdfViewerModal.tsx.
PdfViewerModal has no tests: document preview state is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
PdfViewerModal(src/components/property/PdfViewerModal.tsx) previews property documents (PDFs). It has no tests. A regression that breaks document loading or modal close ships silently in the document section.Proposal
Acceptance criteria
npm test.Getting started
src/components/property/PdfViewerModal.tsxsrc/components/property/__tests__/CurrencyToggle.test.tsx— the patternCommands:
npm test.Good first files to read:
src/components/property/PdfViewerModal.tsx.