mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
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.
This commit is contained in:
1 parent
de93ee2d38
commit
0e1bf698f3
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user