1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 14:53:09 +00:00

Create test suite for Fonts.

This commit is contained in:
Lukáš Růžička 2023-01-24 13:48:52 +01:00 committed by Adam Williamson
parent 7603b38dec
commit 0075780ac5
47 changed files with 492 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_about_shown"
],
"area": [
{
"xpos": 445,
"ypos": 234,
"width": 137,
"height": 132,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_c059_font"
],
"area": [
{
"xpos": 54,
"ypos": 104,
"width": 171,
"height": 157,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_c059_shown"
],
"area": [
{
"xpos": 1,
"ypos": 91,
"width": 459,
"height": 134,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_cantarell_font"
],
"area": [
{
"xpos": 66,
"ypos": 597,
"width": 143,
"height": 146,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_cantarell_info"
],
"area": [
{
"xpos": 14,
"ypos": 96,
"width": 176,
"height": 106,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_cantarell_shown"
],
"area": [
{
"xpos": 2,
"ypos": 104,
"width": 397,
"height": 149,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_cantarell_sizes"
],
"area": [
{
"xpos": 9,
"ypos": 262,
"width": 98,
"height": 438,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"height": 137,
"ypos": 176,
"xpos": 341,
"width": 138
}
],
"properties": [],
"tags": [
"fonts_credits_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_credits_shown"
],
"area": [
{
"xpos": 342,
"ypos": 181,
"width": 138,
"height": 137,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_legal_shown"
],
"area": [
{
"xpos": 339,
"ypos": 191,
"width": 307,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 38,
"ypos": 178,
"width": 752,
"height": 101,
"type": "match"
}
],
"properties": [],
"tags": [
"fonts_liberation_font_found"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_liberation_font_found"
],
"area": [
{
"xpos": 38,
"ypos": 182,
"width": 752,
"height": 101,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_button_info"
],
"area": [
{
"xpos": 827,
"ypos": 42,
"width": 45,
"height": 26,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 353,
"ypos": 636,
"width": 48,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_button_legal"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 355,
"ypos": 437,
"width": 59,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"gnome_button_website"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_icon_search"
],
"area": [
{
"xpos": 9,
"ypos": 42,
"width": 30,
"height": 27,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -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,

View 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:

View 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:

View 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:

View 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:

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"fonts_c059_font"
],
"area": [
{
"xpos": 55,
"ypos": 105,
"width": 170,
"height": 155,
"type": "match"
}
]
}

View 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: