2022-07-25 09:34:20 +00:00
|
|
|
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;
|
2023-10-02 14:02:11 +00:00
|
|
|
# Set the update notification timestamp
|
|
|
|
set_update_notification_timestamp();
|
2022-07-25 09:34:20 +00:00
|
|
|
|
|
|
|
# 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");
|
2023-03-30 16:28:40 +00:00
|
|
|
wait_still_screen(2);
|
2022-07-25 09:34:20 +00:00
|
|
|
|
|
|
|
# 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:
|
|
|
|
|