The fixture file was updated with real website data (10 units) but
the tests still referenced old synthetic data (5 units with CCT-*
codes). Updated tests to use real unit codes from the fixture (W2707,
E3205, W2603) and moved edge case tests (image extraction, missing
attributes, unavailable units) to use inline HTML for isolation.
Create three HTML fixture files in __tests__/scraper/fixtures/ to support
deterministic testing of the scraper's HTML parsing logic:
- sample-listing.html: Contains 10 real unit articles extracted from the
live listings page, covering studios, 1BR, and 2BR floor plans with
varied pricing and availability dates.
- sample-listing-empty.html: Minimal page structure with an empty units
section, for testing graceful handling of pages with no listings.
- sample-listing-call.html: Contains units with "Call for pricing" instead
of numeric rent values, for testing the parser's handling of non-numeric
price fields.