Stabilize sidebar month-name test fixture (#3859)

Inject an empty local folder list so asynchronous host discovery cannot move rows between queued clicks. Preserve both clicks and all accessibility assertions.

Fixes #3858

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
This commit is contained in:
FredApps
2026-11-06 17:03:17 +01:00
committed by GitHub
co-authored by FredApps
parent 92adb04782
commit 097dac4566
+2 -1
View File
@@ -51,7 +51,8 @@ fn a_month_triangle_names_its_year() {
for (id, captured) in ids.into_iter().zip(["2025-03-05T10:00:00", "2026-03-05T10:00:00"]) {
session.catalog.apply(lightcraft_catalog::Op::SetCaptured { id, captured: Some(captured.into()) }).expect("the capture time is set");
}
let mut app = LightcraftApp::new(session, Services { png: None, ..Default::default() });
// Keep host-folder discovery from moving rows between a queued click and its frame (#3858).
let mut app = LightcraftApp::new(session, Services { png: None, local_places: Some(Vec::new()), ..Default::default() });
app.headless_host = true;
app.ui.left_panel = true;
app.ui.view = ViewMode::PhotoGrid;