mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 07:13:09 +00:00
5c62a909c8
Exactly the same as the change for Maps from a few days back, for the same reason. Signed-off-by: Adam Williamson <awilliam@redhat.com>
51 lines
1.3 KiB
Perl
51 lines
1.3 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This script will start the Gnome Weather application and save
|
|
# the image for all subsequent tests.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
|
|
# Start the Application
|
|
menu_launch_type("weather");
|
|
assert_screen ["apps_run_weather", "grant_access"];
|
|
# sometimes we match apps_run_weather for a split second before
|
|
# grant_access appears, so handle that
|
|
wait_still_screen 3;
|
|
assert_screen ['apps_run_weather', 'grant_access'];
|
|
# give access rights if asked
|
|
if (match_has_tag 'grant_access') {
|
|
click_lastmatch;
|
|
assert_screen 'apps_run_weather';
|
|
}
|
|
|
|
# Make it fill the entire window.
|
|
send_key("super-up");
|
|
wait_still_screen(2);
|
|
|
|
# Search for the city, different from the default one
|
|
# as the default one can differ between zones.
|
|
if (check_screen("weather_search_city")) {
|
|
click_lastmatch;
|
|
}
|
|
type_very_safely("Brno");
|
|
assert_and_click("weather_select_city");
|
|
# check we wind up on the hourly view, then let things settle
|
|
# before snapshotting
|
|
assert_screen("weather_report_hourly");
|
|
wait_still_screen 3;
|
|
}
|
|
|
|
sub test_flags {
|
|
# If this test fails, there is no need to continue.
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|
|
|