From fa049748eaa74b7571f6ffdeb78128b87e4f00b4 Mon Sep 17 00:00:00 2001 From: Nathaniel Ledford Date: Thu, 19 Nov 2026 11:38:42 -0500 Subject: [PATCH] Settings filter tests: narrow the two-word queries to the cache section Main's new Hot pixel limit row and Memory for caches make Rendering match "cache limit"; "cache disk" is only in the preview cache hint. Co-Authored-By: Claude --- crates/ui-egui/src/tests/dialog_settings_filter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/tests/dialog_settings_filter.rs b/crates/ui-egui/src/tests/dialog_settings_filter.rs index b9d48f0b82..cd35a06e9c 100644 --- a/crates/ui-egui/src/tests/dialog_settings_filter.rs +++ b/crates/ui-egui/src/tests/dialog_settings_filter.rs @@ -120,10 +120,10 @@ fn every_word_typed_has_to_be_there() { let cache = found(&h); assert!(cache.len() > 1 && cache.contains(&"performance:Preview cache".to_string()), "{cache:?}"); // When a second word narrows it - filter(&mut h, "cache limit"); + filter(&mut h, "cache disk"); assert_eq!(found(&h), ["performance:Preview cache"]); // And the words can come in any order - filter(&mut h, "limit cache"); + filter(&mut h, "disk cache"); assert_eq!(found(&h), ["performance:Preview cache"]); } @@ -301,7 +301,7 @@ fn what_a_page_shows_now_is_what_is_found() { fn the_arrow_goes_from_the_filter_to_what_was_found_and_return_opens_it() { let mut h = demo([1200.0, 1000.0]); show(&mut h, "general"); - filter(&mut h, "cache limit"); + filter(&mut h, "cache disk"); assert_eq!(found(&h), ["performance:Preview cache"]); // When ↓ is pressed in the filter (the focus goes to the first result), then Return key(&mut h, "ArrowDown");