2022-02-10 09:29:17 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# Open another instance of Nautilus.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2022-07-28 20:32:57 +00:00
|
|
|
|
|
|
|
# Enter the Documents directory to get to the test data.
|
2022-07-23 00:17:59 +00:00
|
|
|
assert_and_click("nautilus_directory_documents");
|
2022-07-28 20:32:57 +00:00
|
|
|
|
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-07-28 20:32:57 +00:00
|
|
|
|
2022-02-10 09:29:17 +00:00
|
|
|
# Click on the new instance icon to create a new instance of Nautilus.
|
|
|
|
assert_and_click("nautilus_menu_new_instance");
|
|
|
|
wait_still_screen(2);
|
2022-07-28 20:32:57 +00:00
|
|
|
|
2022-02-10 09:29:17 +00:00
|
|
|
# Hit the Meta key to switch to the activities mode for further check.
|
|
|
|
send_key("super");
|
|
|
|
wait_still_screen(2);
|
2022-07-28 20:32:57 +00:00
|
|
|
|
2022-02-10 09:29:17 +00:00
|
|
|
# Confirm that two Nautilus windows exist in the view.
|
|
|
|
assert_screen("nautilus_instances_check");
|
2022-07-28 20:32:57 +00:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
|
|
|