1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-09 17:04:21 +00:00
os-autoinst-distri-fedora/tests/applications/weather/weather_report.pm

39 lines
1.0 KiB
Perl
Raw Normal View History

2022-07-21 11:55:38 +00:00
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;
# The application should have started in the Hourly regime
# so let us check that it really is in this regime.
assert_screen("weather_report_hourly");
# Assert that a big icon is visible.
assert_screen("weather_icon_current");
# Assert that one of the smaller icons is available.
assert_screen("weather_icon_smaller");
# Change the report to a daily report.
assert_and_click("weather_button_daily");
# Assert that the view changed to Days and not Hours
assert_screen("weather_report_daily");
# Assert that a big icon is visible.
assert_screen("weather_icon_current");
# Assert that one of the smaller icons is available.
assert_screen("weather_icon_smaller");
}
sub test_flags {
# If this test fails, there is no need to continue.
return {no_rollback => 1};
}
1;
# vim: set sw=4 et: