1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-02 23:53:08 +00:00

nautilus/move_file_into: fix whitespace errors

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-07-15 11:28:58 -07:00
parent f84792f819
commit 2ee0377ece

View File

@ -7,49 +7,48 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
# Enter the Documents directory to get to the test data. # Enter the Documents directory to get to the test data.
assert_and_dclick("nautilus_directory_documents"); assert_and_dclick("nautilus_directory_documents");
# Right click onto a file to select it and open the context menu # Right click onto a file to select it and open the context menu
# for it. # for it.
assert_and_click("nautilus_test_file", button => "right"); assert_and_click("nautilus_test_file", button => "right");
wait_still_screen(2); wait_still_screen(2);
# Click on Copy To # Click on Copy To
wait_screen_change { assert_and_click("nautilus_context_copy_to"); }; wait_screen_change { assert_and_click("nautilus_context_copy_to"); };
wait_still_screen(5); wait_still_screen(5);
# Select a different location to place the file. # Select a different location to place the file.
assert_and_click("nautilus_directory_downloads"); assert_and_click("nautilus_directory_downloads");
wait_still_screen(2); wait_still_screen(2);
# Click on Select to copy the file into the new location # Click on Select to copy the file into the new location
assert_and_click("gnome_select_button"); assert_and_click("gnome_select_button");
# Right click on that file again, this time we will move it elsewhere. # Right click on that file again, this time we will move it elsewhere.
assert_and_click("nautilus_test_file", button => "right"); assert_and_click("nautilus_test_file", button => "right");
# Click on Move to # Click on Move to
wait_screen_change { assert_and_click("nautilus_context_move_to"); }; wait_screen_change { assert_and_click("nautilus_context_move_to"); };
wait_still_screen(5); wait_still_screen(5);
# Select a new location for this file # Select a new location for this file
assert_and_click("nautilus_directory_videos"); assert_and_click("nautilus_directory_videos");
wait_still_screen(2); wait_still_screen(2);
# Click on Select to move the file into the new location. # Click on Select to move the file into the new location.
assert_and_click("gnome_select_button"); assert_and_click("gnome_select_button");
# Go into the root console and verify the operation in the background. # Go into the root console and verify the operation in the background.
$self->root_console(tty=>3); $self->root_console(tty=>3);
# Verify that the new file does not exist in the original location. # Verify that the new file does not exist in the original location.
assert_script_run("! ls /home/test/Documents/markdown.md", fail_message => 'The test file has not been deleted from its original location.'); assert_script_run("! ls /home/test/Documents/markdown.md", fail_message => 'The test file has not been deleted from its original location.');
# And that it now exists in the new locations. # And that it now exists in the new locations.
assert_script_run("ls /home/test/Downloads/markdown.md", fail_message => 'The test file has not been found in the expected location.', quiet => '0'); assert_script_run("ls /home/test/Downloads/markdown.md", fail_message => 'The test file has not been found in the expected location.', quiet => '0');
assert_script_run("ls /home/test/Downloads/markdown.md", fail_message => 'The test file has not been found in the excpected location.', quiet => '0'); assert_script_run("ls /home/test/Downloads/markdown.md", fail_message => 'The test file has not been found in the excpected location.', quiet => '0');
} }
sub test_flags { sub test_flags {