## Problem All tests currently live in `OpenClaw.Shared.Tests`, which only covers the shared library. There is **zero test coverage** for WinUI-specific code: - `SettingsWindow` load/save logic - `StatusDetailWindow` status rendering - `GlobalHotkeyService` registration/lifecycle - `NotificationHistoryWindow` display logic - `ActivityStreamService` filtering and updates - `TrayMenuWindow` positioning calculations - Menu building logic in `App.xaml.cs` - Deep link / URI activation parsing ## Proposed approach Create `tests/OpenClaw.Tray.WinUI.Tests/` with: - **Unit tests** for testable logic (extract pure functions where needed) - Settings round-trip tests (save → load → verify) - Status icon/color mapping tests - Activity stream filtering tests - Deep link parsing tests - Menu item generation tests Some UI code may need refactoring to separate testable logic from UI concerns (e.g., extract `ConnectionStatus → display string` mapping into a helper). ## Why this matters - Localization (#40) will touch hundreds of strings — tests catch regressions - WinForms sunset (#43) needs confidence that WinUI covers everything - Settings persistence (#42, now merged) should have round-trip tests
Activity
feat: add WinUI test project with extracted helpers
feat: add WinUI test project with extracted helpers
feat: add WinUI test project with extracted helpers (#45)