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

Create tests for Clocks.

This commit is contained in:
Lukáš Růžička 2022-06-17 10:01:31 +02:00 committed by adamwill
parent b203f41f55
commit 6f00e3fe8a
105 changed files with 1052 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 448,
"ypos": 330,
"width": 124,
"height": 97,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_about_displayed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 685,
"ypos": 114,
"width": 59,
"height": 38,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_alarm_active"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 234,
"ypos": 115,
"width": 509,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_alarm_inactive"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 230,
"ypos": 106,
"width": 104,
"height": 28,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_alarm_snooze_confirmed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_button_add_alarm"
],
"area": [
{
"xpos": 473,
"ypos": 496,
"width": 80,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_button_alarm"
],
"area": [
{
"xpos": 414,
"ypos": 45,
"width": 75,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_button_alarm_snooze"
],
"area": [
{
"xpos": 485,
"ypos": 629,
"width": 55,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_button_alarm_stop"
],
"area": [
{
"xpos": 488,
"ypos": 569,
"width": 51,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 13,
"ypos": 44,
"width": 26,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_button_back"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 526,
"ypos": 44,
"width": 96,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_button_stopwatch"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 665,
"ypos": 47,
"width": 65,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_button_timer"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 371,
"ypos": 287,
"width": 41,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_button_timer_minute"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 499,
"ypos": 212,
"width": 27,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_button_timer_pause"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 500,
"ypos": 587,
"width": 25,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_button_timer_start"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_button_world"
],
"area": [
{
"xpos": 290,
"ypos": 42,
"width": 76,
"height": 25,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 294,
"ypos": 46,
"width": 68,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_button_world"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_city_added_reykjavik"
],
"area": [
{
"xpos": 220,
"ypos": 115,
"width": 84,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,22 @@
{
"properties": [],
"tags": [
"clocks_city_details"
],
"area": [
{
"xpos": 502,
"ypos": 326,
"width": 21,
"height": 64,
"type": "match"
},
{
"xpos": 432,
"ypos": 689,
"width": 90,
"height": 57,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 422,
"ypos": 400,
"width": 144,
"height": 57,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_credits_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 5,
"ypos": 87,
"width": 178,
"height": 67,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_help_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 824,
"ypos": 160,
"width": 89,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_menu_about"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 822,
"ypos": 130,
"width": 47,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_menu_help"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 820,
"ypos": 97,
"width": 138,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_menu_shortcuts"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_set_snooze"
],
"area": [
{
"xpos": 309,
"ypos": 538,
"width": 120,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 650,
"ypos": 314,
"width": 65,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_set_snooze_time"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 175,
"ypos": 190,
"width": 72,
"height": 22,
"type": "match"
},
{
"xpos": 604,
"ypos": 190,
"width": 103,
"height": 21,
"type": "match"
},
{
"xpos": 474,
"ypos": 137,
"width": 75,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_shortcuts_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 601,
"ypos": 448,
"width": 48,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_button_clear"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 603,
"ypos": 444,
"width": 38,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_button_lap"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 372,
"ypos": 447,
"width": 55,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_button_pause"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 365,
"ypos": 444,
"width": 69,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_button_resume"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 374,
"ypos": 449,
"width": 49,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_button_start"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 626,
"ypos": 285,
"width": 54,
"height": 147,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_laps_count"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 450,
"ypos": 283,
"width": 69,
"height": 88,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_laps_deltas"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 350,
"ypos": 291,
"width": 61,
"height": 137,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_laps_times"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 346,
"ypos": 353,
"width": 244,
"height": 57,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_secondtime_reached"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 348,
"ypos": 339,
"width": 242,
"height": 80,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_stopwatch_time_reached"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 326,
"ypos": 49,
"width": 78,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_timer_finished"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 418,
"ypos": 223,
"width": 191,
"height": 38,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_timer_page"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 423,
"ypos": 188,
"width": 180,
"height": 68,
"type": "match"
}
],
"properties": [],
"tags": [
"clocks_timer_paused"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_city_button_bratislava"
],
"area": [
{
"xpos": 336,
"ypos": 256,
"width": 99,
"height": 42,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_city_button_reykjavik"
],
"area": [
{
"xpos": 334,
"ypos": 392,
"width": 102,
"height": 42,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 658,
"ypos": 143,
"width": 36,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_add_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 657,
"ypos": 142,
"width": 38,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_add_button_blue"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 12,
"ypos": 45,
"width": 23,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_add_button_plus"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 550,
"ypos": 221,
"width": 56,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_button_credits"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 758,
"ypos": 124,
"width": 23,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_button_cross_remove"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 567,
"ypos": 246,
"width": 20,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_button_delete"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 690,
"ypos": 115,
"width": 53,
"height": 37,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_button_toggle"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1052,6 +1052,22 @@
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"clocks": {
"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/clocks",
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"eog": {
"profiles": {
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,

View File

@ -0,0 +1,38 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This script will start the Gnome Clocks application and save the status
# for any subsequent tests.
sub run {
my $self = shift;
# At first, we need to set time and time zones manually.
$self->root_console(tty=>3);
# Switch off automatic time.
assert_script_run("timedatectl set-ntp 0");
# Set the time zone
assert_script_run("timedatectl set-timezone Europe/Prague");
# Set the time and date
assert_script_run("timedatectl set-time '2022-09-09 09:00:00'");
# Return back
desktop_vt();
# Start the Application
menu_launch_type("clocks");
wait_still_screen(2);
# 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:

Some files were not shown because too many files have changed in this diff Show More