From 3e6693045d2ffccc028cacb32b05523f92c31729 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 30 Oct 2026 11:00:51 +0700 Subject: [PATCH] Tests: the mixer's menu checks the shown mode --- crates/ui-egui/src/tests/paintchips.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tests/paintchips.rs b/crates/ui-egui/src/tests/paintchips.rs index 38f0fd86c..13da43117 100644 --- a/crates/ui-egui/src/tests/paintchips.rs +++ b/crates/ui-egui/src/tests/paintchips.rs @@ -345,7 +345,9 @@ fn the_mixer_popover_has_the_color_panels_menu() { let menu = menu.expect("the mixer has a panel menu button"); click(&mut app, &ctx, menu.center(), Modifiers::NONE, control_bar); let shapes = frame(&mut app, &ctx, vec![], Modifiers::NONE, control_bar); - for mode in ["Grayscale", "RGB", "HSB", "Web Safe RGB", "Invert", "Complement"] { + // The fill is RGB, so RGB is checked. + assert!(menu_item_rect(&shapes, "✓ RGB").is_some(), "RGB is the checked mode"); + for mode in ["Grayscale", "HSB", "Web Safe RGB", "Invert", "Complement"] { assert!(menu_item_rect(&shapes, mode).is_some(), "{mode} in the mixer's menu"); } let cmyk = menu_item_rect(&shapes, "CMYK").expect("CMYK in the mixer's menu");