Skip to content

PdfViewerModal has no tests: document preview state is uncovered #922

Description

@nanaf6203-bit

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programTrivialtestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions