From 280b929de13a7016e8d1da8a6d0deeec91fbf5ae Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 6 Dec 2022 10:48:41 +0100 Subject: [PATCH] Add an existence check for the file even in gui. --- 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 ffd70be3..623060fb 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 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."); + } + # Go into the root console and verify the operation in the background. $self->root_console(tty => 3);