app: render the panel with an injected clock
The headless forecast check failed after 2026-10-16 08:33 UTC because the fixture fixes now while PanelWindow read DateTimeOffset.UtcNow. PanelWindow now takes an optional TimeProvider (system by default) and hands it to the pace bar, burn-up, peak and usage charts and every forecast label. The tests pin it to fixture time and check the "Forecast from" note before, at and after the forecast start. App test fixtures now use fixed dates and pin HistoryStore's clock, so the 60-day Claude retention cannot drop their samples later. Refs #11
This commit is contained in:
@@ -5,3 +5,4 @@ View-model tests use public Core queries. Headless tests run on a dedicated UI t
|
||||
Skia and HarfBuzz, exercise settings and popup actions, and save PNG screenshots outside
|
||||
the repo at ../runs/shots/app. FINALTOKEN_SCREENSHOT_DIR overrides that path.
|
||||
Popup expiry uses an injected TimeProvider; fire timers and pump the dispatcher instead of sleeping.
|
||||
Pin panel clocks and HistoryStore retention clocks to fixture time. Reuse FixedClock for fixed-date tests.
|
||||
|
||||
Reference in New Issue
Block a user