--- # nuzlocke-tracker-1guz title: Component tests for key frontend components status: completed type: task priority: normal created_at: 2026-02-10T09:33:45Z updated_at: 2026-02-21T12:53:51Z parent: nuzlocke-tracker-yzpb --- Write component tests for key frontend React components, focusing on user interactions and rendering correctness. Test components with no external hook dependencies directly; mock `useTheme` where needed. Use @testing-library/user-event for interactions. ## Checklist - [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