diff --git a/tests/applications/nautilus/move_file_into.pm b/tests/applications/nautilus/move_file_into.pm index c767b109..745f48a1 100644 --- a/tests/applications/nautilus/move_file_into.pm +++ b/tests/applications/nautilus/move_file_into.pm @@ -38,8 +38,6 @@ sub run { assert_and_click("nautilus_directory_videos"); wait_still_screen(2); - # Click on Select to move the file into the new location. - assert_and_click("gnome_select_button"); # Click on Select to move the file into the new location. assert_and_click("gnome_select_button"); @@ -47,6 +45,9 @@ sub run { if (check_screen("nautilus_test_file")) { die("The file being moved has not been removed from the original location."); } + elsif (check_screen("gnome_select_button")) { + die("The operation could not be performed correctly"); + } # Go into the root console and verify the operation in the background. $self->root_console(tty => 3);