1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00
os-autoinst-distri-fedora/tests/applications/nautilus/open_new_tab.pm

41 lines
931 B
Perl
Raw Normal View History

2022-02-10 09:29:17 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# Open a new tab.
sub run {
my $self = shift;
# Enter the Documents directory to get to the test data.
assert_and_click("nautilus_directory_documents");
2022-02-10 09:29:17 +00:00
# Click on the Burger menu to open it
assert_and_click("gnome_burger_menu");
wait_still_screen(2);
2022-02-10 09:29:17 +00:00
# Click on the New tab to start a new tab of Nautilus.
assert_and_click("nautilus_menu_new_tab");
wait_still_screen(2);
2022-02-10 09:29:17 +00:00
# The new tab will open in the same directory, so let us choose
# another directory to be able to compare in the needle.
assert_and_click("nautilus_directory_videos");
wait_still_screen(2);
2022-02-10 09:29:17 +00:00
# Confirm that two tabs exists with Documents and Video locations.
assert_screen("nautilus_tabs_check");
2022-02-10 09:29:17 +00:00
}
sub test_flags {
# Rollback to the previous state to make space for other parts.
return {always_rollback => 1};
}
1;