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.
15
needles/gnome/apps/characters/chars_about_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 427,
|
||||
"ypos": 226,
|
||||
"width": 171,
|
||||
"height": 108,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_about_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_about_shown.png
Normal file
After Width: | Height: | Size: 182 KiB |
22
needles/gnome/apps/characters/chars_activities_icons.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_activities_icons.png
Normal file
After Width: | Height: | Size: 237 KiB |
22
needles/gnome/apps/characters/chars_animals_icons.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_animals_icons.png
Normal file
After Width: | Height: | Size: 211 KiB |
15
needles/gnome/apps/characters/chars_character_copied.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 56,
|
||||
"ypos": 90,
|
||||
"width": 67,
|
||||
"height": 80,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_character_copied"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_character_copied.png
Normal file
After Width: | Height: | Size: 123 KiB |
22
needles/gnome/apps/characters/chars_credits_shown.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_credits_shown.png
Normal file
After Width: | Height: | Size: 176 KiB |
22
needles/gnome/apps/characters/chars_flags_icons.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_flags_icons.png
Normal file
After Width: | Height: | Size: 236 KiB |
22
needles/gnome/apps/characters/chars_food_icons.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_food_icons.png
Normal file
After Width: | Height: | Size: 235 KiB |
15
needles/gnome/apps/characters/chars_legal_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 391,
|
||||
"ypos": 227,
|
||||
"width": 189,
|
||||
"height": 27,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_legal_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_legal_shown.png
Normal file
After Width: | Height: | Size: 175 KiB |
15
needles/gnome/apps/characters/chars_love_eyes.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 377,
|
||||
"ypos": 301,
|
||||
"width": 95,
|
||||
"height": 80,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_love_eyes"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_love_eyes.png
Normal file
After Width: | Height: | Size: 237 KiB |
22
needles/gnome/apps/characters/chars_love_eyes_dialogue.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_love_eyes_dialogue.png
Normal file
After Width: | Height: | Size: 193 KiB |
22
needles/gnome/apps/characters/chars_people_icons.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_people_icons.png
Normal file
After Width: | Height: | Size: 166 KiB |
15
needles/gnome/apps/characters/chars_select_activities.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 45,
|
||||
"ypos": 406,
|
||||
"width": 68,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_select_activities"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_select_activities.png
Normal file
After Width: | Height: | Size: 235 KiB |
15
needles/gnome/apps/characters/chars_select_animals.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 47,
|
||||
"ypos": 269,
|
||||
"width": 120,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_select_animals"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_select_animals.png
Normal file
After Width: | Height: | Size: 166 KiB |
15
needles/gnome/apps/characters/chars_select_flags.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 42,
|
||||
"ypos": 538,
|
||||
"width": 46,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_select_flags"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_select_flags.png
Normal file
After Width: | Height: | Size: 134 KiB |
15
needles/gnome/apps/characters/chars_select_food.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 43,
|
||||
"ypos": 314,
|
||||
"width": 93,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_select_food"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_select_food.png
Normal file
After Width: | Height: | Size: 221 KiB |
15
needles/gnome/apps/characters/chars_select_people.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 44,
|
||||
"ypos": 224,
|
||||
"width": 101,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_select_people"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_select_people.png
Normal file
After Width: | Height: | Size: 237 KiB |
15
needles/gnome/apps/characters/chars_select_symbols.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 43,
|
||||
"ypos": 494,
|
||||
"width": 65,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_select_symbols"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_select_symbols.png
Normal file
After Width: | Height: | Size: 237 KiB |
15
needles/gnome/apps/characters/chars_select_travel.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 47,
|
||||
"ypos": 361,
|
||||
"width": 106,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_select_travel"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_select_travel.png
Normal file
After Width: | Height: | Size: 211 KiB |
22
needles/gnome/apps/characters/chars_symbols_icons.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_symbols_icons.png
Normal file
After Width: | Height: | Size: 134 KiB |
22
needles/gnome/apps/characters/chars_travel_icons.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_travel_icons.png
Normal file
After Width: | Height: | Size: 221 KiB |
15
needles/gnome/apps/characters/chars_website_opened.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 24,
|
||||
"xpos": 239,
|
||||
"ypos": 84,
|
||||
"width": 367,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"chars_website_opened"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/characters/chars_website_opened.png
Normal file
After Width: | Height: | Size: 113 KiB |
16
needles/gnome/gnome_burger_menu_dark-20221201.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"width": 23,
|
||||
"xpos": 942,
|
||||
"height": 20,
|
||||
"ypos": 45,
|
||||
"type": "match",
|
||||
"match": 70
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_burger_menu"
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_burger_menu_dark-20221201.png
Normal file
After Width: | Height: | Size: 320 KiB |
15
needles/gnome/gnome_copy_button.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 457,
|
||||
"ypos": 430,
|
||||
"width": 111,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_copy_button"
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_copy_button.png
Normal file
After Width: | Height: | Size: 193 KiB |
15
needles/gnome/gnome_menu_about.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 109,
|
||||
"ypos": 129,
|
||||
"width": 45,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_menu_about"
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_menu_about.png
Normal file
After Width: | Height: | Size: 242 KiB |
15
needles/gnome/gnome_selector_credits.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 357,
|
||||
"ypos": 582,
|
||||
"width": 51,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_selector_credits"
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_selector_credits.png
Normal file
After Width: | Height: | Size: 182 KiB |
15
needles/gnome/gnome_selector_legal.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 355,
|
||||
"ypos": 639,
|
||||
"width": 45,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_selector_legal"
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_selector_legal.png
Normal file
After Width: | Height: | Size: 182 KiB |
15
needles/gnome/gnome_selector_website.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 355,
|
||||
"ypos": 438,
|
||||
"width": 60,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_selector_website"
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_selector_website.png
Normal file
After Width: | Height: | Size: 182 KiB |
@ -1100,6 +1100,22 @@
|
||||
"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": {
|
||||
"profiles": {
|
||||
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,
|
||||
|
26
tests/applications/characters/aaa_setup.pm
Normal 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:
|
41
tests/applications/characters/about.pm
Normal 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:
|
32
tests/applications/characters/copy_paste.pm
Normal 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:
|
39
tests/applications/characters/smiles.pm
Normal 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:
|