1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 23:03:08 +00:00

Create a new test for Gnome Weather

This commit is contained in:
Lukáš Růžička 2022-07-21 13:55:38 +02:00 committed by Adam Williamson
parent 3cb6b5899a
commit 9e0ec721a6
34 changed files with 350 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 438,
"width": 145,
"type": "match",
"ypos": 168,
"height": 167
}
],
"properties": [],
"tags": [
"weather_about_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_about_shown"
],
"area": [
{
"xpos": 440,
"ypos": 278,
"width": 145,
"height": 114,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_button_daily"
],
"area": [
{
"xpos": 542,
"ypos": 113,
"width": 63,
"height": 28,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 75,
"ypos": 181,
"width": 154,
"type": "match",
"xpos": 342
}
],
"properties": [],
"tags": [
"weather_credits_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_credits_shown"
],
"area": [
{
"xpos": 353,
"ypos": 403,
"width": 189,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 27,
"width": 86,
"type": "match",
"ypos": 100,
"height": 86
}
],
"properties": [],
"tags": [
"weather_icon_current"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_icon_current"
],
"area": [
{
"xpos": 149,
"ypos": 169,
"width": 86,
"height": 86,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_icon_smaller"
],
"area": [
{
"xpos": 159,
"ypos": 352,
"width": 45,
"height": 41,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 847,
"ypos": 141,
"width": 104,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"weather_menu_about"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 492,
"ypos": 222,
"width": 37,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"weather_report_daily"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_report_daily"
],
"area": [
{
"xpos": 165,
"ypos": 300,
"width": 33,
"height": 19,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_report_hourly"
],
"area": [
{
"xpos": 219,
"ypos": 289,
"width": 52,
"height": 24,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 707,
"ypos": 221,
"width": 45,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"weather_report_hourly"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_search_city"
],
"area": [
{
"xpos": 410,
"ypos": 510,
"width": 184,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"weather_select_city"
],
"area": [
{
"xpos": 346,
"ypos": 314,
"width": 91,
"height": 37,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

View File

@ -1152,6 +1152,22 @@
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"weather": {
"profiles": {
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,
"fedora-Silverblue-dvd_ostree-iso-x86_64-*-64bit": 50,
"fedora-Workstation-live-iso-ppc64le-*-ppc64le": 20,
"fedora-Workstation-live-iso-x86_64-*-64bit": 20,
"fedora-Workstation-upgrade-aarch64-*-aarch64": 40,
"fedora-Workstation-raw_xz-raw.xz-aarch64-*-aarch64": 22
},
"settings": {
"BOOTFROM": "c",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"POSTINSTALL_PATH": "tests/applications/weather",
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"desktop_update_graphical": {
"profiles": {
"fedora-KDE-live-iso-x86_64-*-64bit": 32,

View File

@ -0,0 +1,42 @@
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"];
# 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");
}
sub test_flags {
# If this test fails, there is no need to continue.
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,29 @@
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;
# Open the Menu
assert_and_click("gnome_burger_menu");
assert_and_click("weather_menu_about");
assert_screen("weather_about_shown");
# Change to Credits
assert_and_click("gnome_button_credits");
assert_screen("weather_credits_shown");
}
sub test_flags {
# If this test fails, there is no need to continue.
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,38 @@
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: