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

Add new test for Characters.

This PR adds a small test suite to test the Characters applications.
It displays several different groups of characters and then tries
to copy one of the characters and place it into a text editor.
This commit is contained in:
Lukas Ruzicka 2023-01-03 15:04:20 +01:00 committed by Adam Williamson
parent 1d46c5aa85
commit 7ad809339f
59 changed files with 623 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 427,
"ypos": 226,
"width": 171,
"height": 108,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_about_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 276,
"ypos": 501,
"width": 93,
"height": 81,
"type": "match"
},
{
"xpos": 381,
"ypos": 402,
"width": 85,
"height": 78,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_activities_icons"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 486,
"ypos": 199,
"width": 80,
"height": 83,
"type": "match"
},
{
"xpos": 590,
"ypos": 201,
"width": 74,
"height": 79,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_animals_icons"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 56,
"ypos": 90,
"width": 67,
"height": 80,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_character_copied"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 358,
"ypos": 230,
"width": 72,
"height": 21,
"type": "match"
},
{
"xpos": 357,
"ypos": 398,
"width": 65,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_credits_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 279,
"ypos": 101,
"width": 90,
"height": 78,
"type": "match"
},
{
"xpos": 275,
"ypos": 202,
"width": 95,
"height": 77,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_flags_icons"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 383,
"ypos": 202,
"width": 81,
"height": 80,
"type": "match"
},
{
"xpos": 593,
"ypos": 202,
"width": 61,
"height": 79,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_food_icons"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 391,
"ypos": 227,
"width": 189,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_legal_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 377,
"ypos": 301,
"width": 95,
"height": 80,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_love_eyes"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 598,
"ypos": 513,
"width": 66,
"height": 22,
"type": "match"
},
{
"xpos": 457,
"ypos": 304,
"width": 113,
"height": 85,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_love_eyes_dialogue"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 281,
"ypos": 302,
"width": 87,
"height": 84,
"type": "match"
},
{
"xpos": 589,
"ypos": 302,
"width": 74,
"height": 80,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_people_icons"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 45,
"ypos": 406,
"width": 68,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_select_activities"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 43,
"ypos": 314,
"width": 93,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_select_food"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 44,
"ypos": 224,
"width": 101,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_select_people"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 43,
"ypos": 494,
"width": 65,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_select_symbols"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 379,
"ypos": 98,
"width": 89,
"height": 87,
"type": "match"
},
{
"xpos": 283,
"ypos": 199,
"width": 85,
"height": 85,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_symbols_icons"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 379,
"ypos": 214,
"width": 88,
"height": 69,
"type": "match"
},
{
"xpos": 586,
"ypos": 300,
"width": 77,
"height": 85,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_travel_icons"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 24,
"xpos": 239,
"ypos": 84,
"width": 367,
"type": "match"
}
],
"properties": [],
"tags": [
"chars_website_opened"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"width": 23,
"xpos": 942,
"height": 20,
"ypos": 45,
"type": "match",
"match": 70
}
],
"properties": [],
"tags": [
"gnome_burger_menu"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 457,
"ypos": 430,
"width": 111,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_copy_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 357,
"ypos": 582,
"width": 51,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_selector_credits"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 355,
"ypos": 639,
"width": 45,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_selector_legal"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 355,
"ypos": 438,
"width": 60,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_selector_website"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

View File

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

View File

@ -0,0 +1,26 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This will set up the environment for the Characters test.
# It will open the application and save a milestone.
sub run {
my $self = shift;
# Start the application
menu_launch_type("characters");
# Check it has started
assert_screen 'apps_run_chars';
# Fullsize the window.
send_key("super-up");
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,41 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This will set up the environment for the Characters test.
# It will open the application and save a milestone.
sub run {
my $self = shift;
# Open the menu
assert_and_click("gnome_burger_menu");
# Open the About
assert_and_click("gnome_menu_about");
# Check it is displayed.
assert_screen("chars_about_shown");
# Show credits.
assert_and_click("gnome_selector_credits");
# Check it.
assert_screen("chars_credits_shown");
send_key("esc");
# Show legal info.
assert_and_click("gnome_selector_legal");
# Check it.
assert_screen("chars_legal_shown");
send_key("esc");
# Open the website
assert_and_click("gnome_selector_website");
# Check that it opened.
assert_screen("chars_website_opened");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,32 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This will copy a charecter and paste it into a text editor.
sub run {
my $self = shift;
# Click on a character.
assert_and_click("chars_love_eyes");
# Check that it has appeared.
assert_screen("chars_love_eyes_dialogue");
# Click on Copy Character button.
assert_and_click("gnome_copy_button");
# Open text editor.
menu_launch_type("text editor");
wait_still_screen(3);
# Paste the character.
send_key("ctrl-v");
# Check it has been copied.
assert_screen("chars_character_copied");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,39 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This will browse through the screens of various smiles.
sub run {
my $self = shift;
# Click People and body and check.
assert_and_click("chars_select_people");
assert_screen("chars_people_icons");
# Click Animals and nature and check.
assert_and_click("chars_select_animals");
assert_screen("chars_animals_icons");
# Click Travel and Places and check.
assert_and_click("chars_select_travel");
assert_screen("chars_travel_icons");
# Click Food and drink and check.
assert_and_click("chars_select_food");
assert_screen("chars_food_icons");
# Click Activities and check.
assert_and_click("chars_select_activities");
assert_screen("chars_activities_icons");
# Click Symbols and check.
assert_and_click("chars_select_symbols");
assert_screen("chars_symbols_icons");
# Click Flags and check.
assert_and_click("chars_select_flags");
assert_screen("chars_flags_icons");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: