Create a new test for Gnome Weather
15
needles/gnome/apps/weather/weather_about_shown-20220809.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 438,
|
||||
"width": 145,
|
||||
"type": "match",
|
||||
"ypos": 168,
|
||||
"height": 167
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_about_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_about_shown-20220809.png
Normal file
After Width: | Height: | Size: 64 KiB |
15
needles/gnome/apps/weather/weather_about_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_about_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 440,
|
||||
"ypos": 278,
|
||||
"width": 145,
|
||||
"height": 114,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_about_shown.png
Normal file
After Width: | Height: | Size: 362 KiB |
15
needles/gnome/apps/weather/weather_button_daily.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_button_daily"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 542,
|
||||
"ypos": 113,
|
||||
"width": 63,
|
||||
"height": 28,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_button_daily.png
Normal file
After Width: | Height: | Size: 334 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 75,
|
||||
"ypos": 181,
|
||||
"width": 154,
|
||||
"type": "match",
|
||||
"xpos": 342
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_credits_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_credits_shown-20220809.png
Normal file
After Width: | Height: | Size: 61 KiB |
15
needles/gnome/apps/weather/weather_credits_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_credits_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 353,
|
||||
"ypos": 403,
|
||||
"width": 189,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_credits_shown.png
Normal file
After Width: | Height: | Size: 354 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 27,
|
||||
"width": 86,
|
||||
"type": "match",
|
||||
"ypos": 100,
|
||||
"height": 86
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_icon_current"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 45 KiB |
15
needles/gnome/apps/weather/weather_icon_current_sun.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_icon_current"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 149,
|
||||
"ypos": 169,
|
||||
"width": 86,
|
||||
"height": 86,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_icon_current_sun.png
Normal file
After Width: | Height: | Size: 334 KiB |
15
needles/gnome/apps/weather/weather_icon_smaller_sun.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_icon_smaller"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 159,
|
||||
"ypos": 352,
|
||||
"width": 45,
|
||||
"height": 41,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_icon_smaller_sun.png
Normal file
After Width: | Height: | Size: 334 KiB |
15
needles/gnome/apps/weather/weather_menu_about.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 847,
|
||||
"ypos": 141,
|
||||
"width": 104,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_menu_about"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_menu_about.png
Normal file
After Width: | Height: | Size: 49 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 492,
|
||||
"ypos": 222,
|
||||
"width": 37,
|
||||
"height": 25,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_report_daily"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_report_daily-20220722.png
Normal file
After Width: | Height: | Size: 43 KiB |
15
needles/gnome/apps/weather/weather_report_daily.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_report_daily"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 165,
|
||||
"ypos": 300,
|
||||
"width": 33,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_report_daily.png
Normal file
After Width: | Height: | Size: 334 KiB |
15
needles/gnome/apps/weather/weather_report_hourly.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_report_hourly"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 219,
|
||||
"ypos": 289,
|
||||
"width": 52,
|
||||
"height": 24,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_report_hourly.png
Normal file
After Width: | Height: | Size: 334 KiB |
15
needles/gnome/apps/weather/weather_report_hourly_later.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 707,
|
||||
"ypos": 221,
|
||||
"width": 45,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_report_hourly"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_report_hourly_later.png
Normal file
After Width: | Height: | Size: 46 KiB |
15
needles/gnome/apps/weather/weather_search_city.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_search_city"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 410,
|
||||
"ypos": 510,
|
||||
"width": 184,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_search_city.png
Normal file
After Width: | Height: | Size: 316 KiB |
15
needles/gnome/apps/weather/weather_select_city.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"weather_select_city"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 346,
|
||||
"ypos": 314,
|
||||
"width": 91,
|
||||
"height": 37,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/weather/weather_select_city.png
Normal file
After Width: | Height: | Size: 312 KiB |
@ -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,
|
||||
|
42
tests/applications/weather/aaa_setup.pm
Normal 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:
|
||||
|
29
tests/applications/weather/about.pm
Normal 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:
|
||||
|
38
tests/applications/weather/weather_report.pm
Normal 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:
|
||||
|