From 097dac4566e7e3979a9f2860f288c69a77176263 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Fri, 6 Nov 2026 17:03:17 +0100 Subject: [PATCH] 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 --- crates/ui-egui/tests/it/sidebar_names.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/it/sidebar_names.rs b/crates/ui-egui/tests/it/sidebar_names.rs index a6e35aca2a..a81d641345 100644 --- a/crates/ui-egui/tests/it/sidebar_names.rs +++ b/crates/ui-egui/tests/it/sidebar_names.rs @@ -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;