1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 10:23:09 +00:00
os-autoinst-distri-fedora/tests/applications/nautilus/star_file.pm
Adam Williamson 228fdcf42b Update nautilus needles and star_file test for 43-beta
"Star" was removed from the file context menu, so we have to
star the file from the main view now.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-08-11 09:40:15 -07:00

43 lines
1.0 KiB
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# Star a file and check it is displayed in the Starred folder.
sub run {
my $self = shift;
# Enter the Documents directory to get to the test data.
assert_and_click("nautilus_directory_documents");
# Select the test file then star it.
assert_and_click("nautilus_test_file");
assert_and_click("nautilus_star_selected_file");
# Hide the mouse so the pointer isn't over the star
mouse_hide;
# Check that a star gets solid on the right part of the selected file
assert_screen("nautilus_star_confirm");
# Click on Starred to see all the starred files in a new view.
assert_and_click("nautilus_directory_starred");
wait_still_screen(2);
# Check that the view switched to Starred
assert_screen("nautilus_starred_selected");
# Check that the file has appeared.
assert_screen("nautilus_test_file");
}
sub test_flags {
# Rollback to the previous state to make space for other parts.
return {always_rollback => 1};
}
1;