From cb9611e0369a39ca81c3b3993edd43bcbb9cf430 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 6 Dec 2022 11:28:28 +0100 Subject: [PATCH] Make the button be pressed twice if needed. --- tests/applications/nautilus/move_file_into.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/applications/nautilus/move_file_into.pm b/tests/applications/nautilus/move_file_into.pm index c65d71c7..c767b109 100644 --- a/tests/applications/nautilus/move_file_into.pm +++ b/tests/applications/nautilus/move_file_into.pm @@ -40,11 +40,8 @@ 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; - } + # Click on Select to move the file into the new location. + assert_and_click("gnome_select_button"); # Check that the file has been removed from this location. if (check_screen("nautilus_test_file")) {