Create test suite for Fonts.
15
needles/gnome/apps/fonts/fonts_about_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_about_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 445,
|
||||
"ypos": 234,
|
||||
"width": 137,
|
||||
"height": 132,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_about_shown.png
Normal file
After Width: | Height: | Size: 62 KiB |
15
needles/gnome/apps/fonts/fonts_c059_font.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_c059_font"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 54,
|
||||
"ypos": 104,
|
||||
"width": 171,
|
||||
"height": 157,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_c059_font.png
Normal file
After Width: | Height: | Size: 54 KiB |
15
needles/gnome/apps/fonts/fonts_c059_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_c059_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 1,
|
||||
"ypos": 91,
|
||||
"width": 459,
|
||||
"height": 134,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_c059_shown.png
Normal file
After Width: | Height: | Size: 152 KiB |
15
needles/gnome/apps/fonts/fonts_cantarell_font.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_cantarell_font"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 66,
|
||||
"ypos": 597,
|
||||
"width": 143,
|
||||
"height": 146,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_cantarell_font.png
Normal file
After Width: | Height: | Size: 51 KiB |
15
needles/gnome/apps/fonts/fonts_cantarell_info.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_cantarell_info"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 14,
|
||||
"ypos": 96,
|
||||
"width": 176,
|
||||
"height": 106,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_cantarell_info.png
Normal file
After Width: | Height: | Size: 72 KiB |
15
needles/gnome/apps/fonts/fonts_cantarell_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_cantarell_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 2,
|
||||
"ypos": 104,
|
||||
"width": 397,
|
||||
"height": 149,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_cantarell_shown.png
Normal file
After Width: | Height: | Size: 114 KiB |
15
needles/gnome/apps/fonts/fonts_cantarell_sizes.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_cantarell_sizes"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 9,
|
||||
"ypos": 262,
|
||||
"width": 98,
|
||||
"height": 438,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_cantarell_sizes.png
Normal file
After Width: | Height: | Size: 114 KiB |
15
needles/gnome/apps/fonts/fonts_credits_shown-20230328.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"type": "match",
|
||||
"height": 137,
|
||||
"ypos": 176,
|
||||
"xpos": 341,
|
||||
"width": 138
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_credits_shown"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_credits_shown-20230328.png
Normal file
After Width: | Height: | Size: 30 KiB |
15
needles/gnome/apps/fonts/fonts_credits_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_credits_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 342,
|
||||
"ypos": 181,
|
||||
"width": 138,
|
||||
"height": 137,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_credits_shown.png
Normal file
After Width: | Height: | Size: 52 KiB |
15
needles/gnome/apps/fonts/fonts_legal_shown.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_legal_shown"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 339,
|
||||
"ypos": 191,
|
||||
"width": 307,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_legal_shown.png
Normal file
After Width: | Height: | Size: 55 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 38,
|
||||
"ypos": 178,
|
||||
"width": 752,
|
||||
"height": 101,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_liberation_font_found"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 20 KiB |
15
needles/gnome/apps/fonts/fonts_liberation_font_found.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_liberation_font_found"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 38,
|
||||
"ypos": 182,
|
||||
"width": 752,
|
||||
"height": 101,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_liberation_font_found.png
Normal file
After Width: | Height: | Size: 26 KiB |
15
needles/gnome/apps/fonts/fonts_website_opened-20230209.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"height": 24,
|
||||
"ypos": 84,
|
||||
"type": "match",
|
||||
"width": 381,
|
||||
"xpos": 242
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_website_opened"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_website_opened-20230209.png
Normal file
After Width: | Height: | Size: 81 KiB |
15
needles/gnome/apps/fonts/fonts_website_opened.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 241,
|
||||
"ypos": 84,
|
||||
"width": 381,
|
||||
"height": 24,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_website_opened"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/fonts_website_opened.png
Normal file
After Width: | Height: | Size: 80 KiB |
15
needles/gnome/apps/fonts/gnome_button_info.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_button_info"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 827,
|
||||
"ypos": 42,
|
||||
"width": 45,
|
||||
"height": 26,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/gnome_button_info.png
Normal file
After Width: | Height: | Size: 114 KiB |
15
needles/gnome/apps/fonts/gnome_button_install.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 913,
|
||||
"ypos": 45,
|
||||
"width": 52,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_button_install"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/gnome_button_install.png
Normal file
After Width: | Height: | Size: 110 KiB |
15
needles/gnome/apps/fonts/gnome_button_legal.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 353,
|
||||
"ypos": 636,
|
||||
"width": 48,
|
||||
"height": 25,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_button_legal"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/gnome_button_legal.png
Normal file
After Width: | Height: | Size: 60 KiB |
15
needles/gnome/apps/fonts/gnome_button_website.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 355,
|
||||
"ypos": 437,
|
||||
"width": 59,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_button_website"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/gnome_button_website.png
Normal file
After Width: | Height: | Size: 60 KiB |
15
needles/gnome/apps/fonts/gnome_icon_info.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_icon_info"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 951,
|
||||
"ypos": 45,
|
||||
"width": 22,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/gnome_icon_info.png
Normal file
After Width: | Height: | Size: 52 KiB |
15
needles/gnome/apps/fonts/gnome_icon_search.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_icon_search"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 9,
|
||||
"ypos": 42,
|
||||
"width": 30,
|
||||
"height": 27,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/fonts/gnome_icon_search.png
Normal file
After Width: | Height: | Size: 60 KiB |
@ -1132,6 +1132,22 @@
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
|
||||
}
|
||||
},
|
||||
"fonts": {
|
||||
"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/fonts",
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
|
||||
}
|
||||
},
|
||||
"help_viewer": {
|
||||
"profiles": {
|
||||
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,
|
||||
|
28
tests/applications/fonts/aaa_setup.pm
Normal file
@ -0,0 +1,28 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This script will start Fonts and save a milestone for the
|
||||
# subsequent tests.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
# Start the application
|
||||
menu_launch_type("fonts");
|
||||
# Check that is started
|
||||
assert_screen 'apps_run_fonts';
|
||||
|
||||
# Fullsize the window.
|
||||
send_key("super-up");
|
||||
wait_still_screen(2);
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1, milestone => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
42
tests/applications/fonts/about.pm
Normal file
@ -0,0 +1,42 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This script will examine that the About dialogue
|
||||
# works as expected.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# Click on the Info icon in the upper right corner.
|
||||
assert_and_click("gnome_icon_info");
|
||||
# Check that the correct font is shown.
|
||||
assert_screen("fonts_about_shown");
|
||||
# Click on Credits to see them.
|
||||
assert_and_click("gnome_button_credits");
|
||||
|
||||
# Check that Credits are shown
|
||||
assert_screen("fonts_credits_shown");
|
||||
# Return to previous screen
|
||||
send_key("esc");
|
||||
|
||||
# Click on Legal to see legal info.
|
||||
assert_and_click("gnome_button_legal");
|
||||
# Check that Credits are shown
|
||||
assert_screen("fonts_legal_shown");
|
||||
# Return to previous screen
|
||||
send_key("esc");
|
||||
|
||||
# Check that a project website can be reached.
|
||||
assert_and_click("gnome_button_website");
|
||||
# Check that the website has been opened
|
||||
assert_screen("fonts_website_opened");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
31
tests/applications/fonts/info.pm
Normal file
@ -0,0 +1,31 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This script will show info for the Cantarell font
|
||||
# that should be the among those installed by default.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# Send the TAB key until the Cantarell font is found.
|
||||
send_key_until_needlematch("fonts_cantarell_font", "tab", 30, 1);
|
||||
# Click on the icon
|
||||
click_lastmatch();
|
||||
# Check that the correct font is shown.
|
||||
assert_screen("fonts_cantarell_shown");
|
||||
# Check that various sizes are shown.
|
||||
assert_screen("fonts_cantarell_sizes");
|
||||
# Click on Info to get more information.
|
||||
assert_and_click("gnome_button_info");
|
||||
# Check for various information on that page.
|
||||
assert_screen("fonts_cantarell_info");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
33
tests/applications/fonts/install.pm
Normal file
@ -0,0 +1,33 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This will try to install the selected Cantarell
|
||||
# font that is installable, but not installed.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# Send the TAB key until the Cantarell font is found.
|
||||
send_key_until_needlematch("fonts_c059_font", "tab", 30, 1);
|
||||
click_lastmatch();
|
||||
# Check that the correct font is shown.
|
||||
assert_screen("fonts_c059_shown");
|
||||
# Click on the Install button.
|
||||
assert_and_click("gnome_button_install");
|
||||
# Because it seems that the font installation does
|
||||
# not work as expected and this has been reported
|
||||
# as https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/issues/64
|
||||
# we will only softfail when this happens.
|
||||
unless (check_screen("fonts_c059_installed", timeout => 120)) {
|
||||
record_soft_failure("The installation seems to not have fully completed, see https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/issues/64.");
|
||||
}
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
15
tests/applications/fonts/screenshot.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"fonts_c059_font"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 55,
|
||||
"ypos": 105,
|
||||
"width": 170,
|
||||
"height": 155,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
27
tests/applications/fonts/search.pm
Normal file
@ -0,0 +1,27 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This script will try the Search dialogue to look for
|
||||
# a certain font.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# Click on the Search icon
|
||||
assert_and_click("gnome_icon_search");
|
||||
wait_still_screen(2);
|
||||
# Type the name of the font
|
||||
type_very_safely("Liberation Serif");
|
||||
# Check that the Liberation Serif fonts
|
||||
# have been found.
|
||||
assert_screen("fonts_liberation_font_found");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|