Skip to content

Regression tests (import + API contract) #299

@zigzagdev

Description

@zigzagdev

Tasks

  • Importer test (or feature test)
    • Create/seed one site with image payload
    • Run importer
    • Assert world_heritage_site_images count > 0 for that site
    • Assert sort_order is sequential
    • Assert exactly one is_primary = true (if that’s the spec)
  • Detail API test
    • Assert images is an array (not null)
    • Assert ordering: primary first, then sort_order ascending
    • Assert response matches the agreed JSON contract

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions