1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-29 13:43:08 +00:00
os-autoinst-distri-fedora/tests/applications/contacts/aaa_setup.pm
Adam Williamson 594457dff0 Contacts test: wait before maximizing
Try and make sure maximize actually works - wait for still screen
after hitting Done and before trying to maximize.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-03-30 09:28:40 -07:00

42 lines
976 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This script will start the Gnome Contacts application and save the status
# for any subsequent tests.
sub run {
my $self = shift;
# Start the Application
menu_launch_type("contacts");
assert_screen ["apps_run_contacts", "grant_access"];
# give access rights if asked
if (match_has_tag 'grant_access') {
click_lastmatch;
assert_screen 'apps_run_contacts';
}
# When run for the first time, we need to select
# the source where to store our contacts.
# Select Local addressbook and confirm.
assert_and_click("contacts_select_local_addressbook");
assert_and_click("gnome_button_done");
wait_still_screen(2);
# Make it fill the entire window.
send_key("super-up");
wait_still_screen(2);
}
sub test_flags {
# If this test fails, there is no need to continue.
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: