2026-02-10 10:34:45 +01:00
|
|
|
---
|
|
|
|
|
# nuzlocke-tracker-1guz
|
|
|
|
|
title: Component tests for key frontend components
|
2026-02-21 13:57:12 +01:00
|
|
|
status: completed
|
2026-02-10 10:34:45 +01:00
|
|
|
type: task
|
2026-02-21 13:57:12 +01:00
|
|
|
priority: normal
|
2026-02-10 10:34:45 +01:00
|
|
|
created_at: 2026-02-10T09:33:45Z
|
2026-02-21 13:57:12 +01:00
|
|
|
updated_at: 2026-02-21T12:53:51Z
|
2026-02-10 10:34:45 +01:00
|
|
|
parent: nuzlocke-tracker-yzpb
|
|
|
|
|
---
|
|
|
|
|
|
2026-02-21 13:57:12 +01:00
|
|
|
Write component tests for key frontend React components, focusing on user interactions and rendering correctness.
|
2026-02-10 10:34:45 +01:00
|
|
|
|
2026-02-21 13:57:12 +01:00
|
|
|
Test components with no external hook dependencies directly; mock `useTheme` where needed. Use @testing-library/user-event for interactions.
|
2026-02-10 10:34:45 +01:00
|
|
|
|
2026-02-21 13:57:12 +01:00
|
|
|
## Checklist
|
2026-02-10 10:34:45 +01:00
|
|
|
|
2026-02-21 13:57:12 +01:00
|
|
|
- [x] Test `EndRunModal` — Victory/Defeat/Cancel button callbacks, genlocke description text, disabled state
|
|
|
|
|
- [x] Test `GameGrid` — renders games, generation filter, region filter, onSelect callback
|
|
|
|
|
- [x] Test `RulesConfiguration` — renders rule sections, toggle calls onChange, type restriction toggle, reset button
|
|
|
|
|
- [x] Test `Layout` — nav links present, mobile menu toggle, theme toggle button
|