From a20ebe8898d2b1563c035929fa18315385579585 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 6 Dec 2022 11:09:24 +0100 Subject: [PATCH] Make the button be pressed twice if needed. --- tests/applications/nautilus/move_file_into.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/applications/nautilus/move_file_into.pm b/tests/applications/nautilus/move_file_into.pm index 623060fb..c65d71c7 100644 --- a/tests/applications/nautilus/move_file_into.pm +++ b/tests/applications/nautilus/move_file_into.pm @@ -41,6 +41,11 @@ sub run { # Click on Select to move the file into the new location. assert_and_click("gnome_select_button"); + # Check that Button was indeed pressed. + if (check_screen("gnome_select_button")) { + click_lastmatch; + } + # Check that the file has been removed from this location. if (check_screen("nautilus_test_file")) { die("The file being moved has not been removed from the original location.");