ImageGallery and ImageLightbox have no tests: property image browsing is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
ImageGallery and ImageLightbox (src/components/property/ImageGallery.tsx, ImageLightbox.tsx) implement property image browsing (the only property component with a test is CurrencyToggle). Neither has tests. A regression that breaks thumbnail selection or lightbox open/close ships silently on every property page.
Proposal
- Add specs covering thumbnail selection, lightbox open/close, and empty-image handling.
Acceptance criteria
- The specs cover the gallery interactions; they pass via
npm test.
Getting started
src/components/property/ImageGallery.tsx, src/components/property/ImageLightbox.tsx
src/components/property/__tests__/CurrencyToggle.test.tsx — the pattern
Commands: npm test.
Good first files to read: src/components/property/ImageGallery.tsx.
ImageGallery and ImageLightbox have no tests: property image browsing is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
ImageGalleryandImageLightbox(src/components/property/ImageGallery.tsx,ImageLightbox.tsx) implement property image browsing (the only property component with a test isCurrencyToggle). Neither has tests. A regression that breaks thumbnail selection or lightbox open/close ships silently on every property page.Proposal
Acceptance criteria
npm test.Getting started
src/components/property/ImageGallery.tsx,src/components/property/ImageLightbox.tsxsrc/components/property/__tests__/CurrencyToggle.test.tsx— the patternCommands:
npm test.Good first files to read:
src/components/property/ImageGallery.tsx.