mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 17:05:55 +01:00
Tests: the mixer's menu checks the shown mode
This commit is contained in:
1 parent
cdc8cb88c9
commit
3e6693045d
1 file changed
+3
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user