From 0e1bf698f39e0e35ae2cd89015a0bd2151357ef1 Mon Sep 17 00:00:00 2001 From: ".CooCoo" Date: Fri, 13 Nov 2026 09:24:03 -0800 Subject: [PATCH] Tests: the Smudge tool's hidden-layer alert in the Remove tool's tests (#13839) #13527 made a Smudge press on a hidden target layer open the "Could not use the smudge tool because the target layer is hidden." alert. #13187, merged right after it, added the_other_tools_keep_their_message, which still expected the status-bar error for the Smudge tool and fails on main. The test now checks the Smudge tool's alert next to the Brush's. --- crates/ui-egui/src/tools/remove_hidden_layer_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/tools/remove_hidden_layer_tests.rs b/crates/ui-egui/src/tools/remove_hidden_layer_tests.rs index 779acba516..eb662f2fdc 100644 --- a/crates/ui-egui/src/tools/remove_hidden_layer_tests.rs +++ b/crates/ui-egui/src/tools/remove_hidden_layer_tests.rs @@ -47,7 +47,8 @@ fn a_hidden_active_layer_is_quiet() { #[test] fn the_other_tools_keep_their_message() { refused(&mut hidden(Tool::Brush), "Could not use the brush tool because the target layer is hidden."); - for tool in [Tool::Pencil, Tool::Eraser, Tool::SpotHealing, Tool::Healing, Tool::CloneStamp, Tool::Smudge] { + refused(&mut hidden(Tool::Smudge), "Could not use the smudge tool because the target layer is hidden."); + for tool in [Tool::Pencil, Tool::Eraser, Tool::SpotHealing, Tool::Healing, Tool::CloneStamp] { let mut app = hidden(tool); let before = steps(&app); stroke(&mut app);