1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-20 13:03:09 +00:00
os-autoinst-distri-fedora/tests/applications/nautilus/new_instance.pm
Adam Williamson 84c6e18f14 Reduce duplication of nautilus Documents directory needles
We had three. We only need one, matching on the sidebar entry,
which should be always visible.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-07-22 17:17:59 -07:00

40 lines
907 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# Open another instance of Nautilus.
sub run {
my $self = shift;
# Enter the Documents directory to get to the test data.
assert_and_click("nautilus_directory_documents");
# Click on the Burger menu to open it
assert_and_click("gnome_burger_menu");
wait_still_screen(2);
# Click on the new instance icon to create a new instance of Nautilus.
assert_and_click("nautilus_menu_new_instance");
wait_still_screen(2);
# Hit the Meta key to switch to the activities mode for further check.
send_key("super");
wait_still_screen(2);
# Confirm that two Nautilus windows exist in the view.
assert_screen("nautilus_instances_check");
}
sub test_flags {
# Rollback to the previous state to make space for other parts.
return {always_rollback => 1};
}
1;