From 85bb1c33649639ae7a637046a6d7ea067a2a77ef Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 6 Dec 2022 12:20:51 +0100 Subject: [PATCH] Add more control instead. --- tests/applications/nautilus/move_file_into.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);