Skip to content

[FRONTEND] Tests β€” GalleryImage componentΒ #231

Description

@yrska

🎯 Acceptance Criteria

  • Renders an with the correct src and alt attributes
  • Renders the skeleton placeholder before the image loads (simulate by not firing onLoad)
  • Transitions to the real image once onLoad fires
  • Renders the error fallback when onError fires
  • Uses React Testing Library and Vitest, Test file is co-located at GalleryImage.test.tsx

πŸ“Š Definition of Done (DoD)

  • Acceptance criteria met
  • Agreed tests written
  • Agreed documentation in GitHub wiki
  • PR reviewed

πŸ”— Dependencies


πŸ“š Additional Context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions