1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-27 16:13:09 +00:00

Create test for the Tour application.

This commit is contained in:
Lukas Ruzicka 2023-06-19 11:36:42 +02:00
parent 43ed1c4ed6
commit 63879b6702
16 changed files with 173 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 343,
"ypos": 545,
"width": 131,
"height": 29,
"type": "match"
}
],
"properties": [],
"tags": [
"tour_leftright"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 468,
"ypos": 544,
"width": 203,
"height": 31,
"type": "match"
}
],
"properties": [],
"tags": [
"tour_niceday"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 410,
"ypos": 547,
"width": 207,
"height": 29,
"type": "match"
}
],
"properties": [],
"tags": [
"tour_overview"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 388,
"ypos": 542,
"width": 244,
"height": 33,
"type": "match"
}
],
"properties": [],
"tags": [
"tour_search"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

View File

@ -0,0 +1,24 @@
{
"area": [
{
"xpos": 421,
"ypos": 546,
"width": 184,
"height": 30,
"type": "ocr",
"margin": 30,
"refstr": "Start the Tour"
},
{
"xpos": 284,
"ypos": 284,
"width": 78,
"height": 80,
"type": "match"
}
],
"properties": [],
"tags": [
"tour_start"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 342,
"ypos": 545,
"width": 122,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"tour_updown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 322,
"ypos": 546,
"width": 379,
"height": 28,
"type": "match"
}
],
"properties": [],
"tags": [
"tour_workspaces"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@ -1233,6 +1233,23 @@
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"tour": {
"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-x86_64-*-64bit": 40,
"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/tour",
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"weather": {
"profiles": {
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,

View File

@ -0,0 +1,42 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test will test the Tour application.
sub run {
my $self = shift;
# Start the Application
menu_launch_type("tour");
assert_screen("tour_start");
send_key("right");
assert_screen("tour_overview");
send_key("right");
assert_screen("tour_search");
send_key("right");
assert_screen("tour_workspaces");
send_key("right");
assert_screen("tour_updown");
send_key("right");
assert_screen("tour_leftright");
send_key("right");
assert_screen("tour_niceday");
}
sub test_flags {
# If this test fails, there is no need to continue.
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: