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

Create tests for Help.

This commit is contained in:
Lukáš Růžička 2022-06-20 14:44:56 +02:00 committed by adamwill
parent 79d92fc8cb
commit 7c1e686d14
43 changed files with 521 additions and 0 deletions

View File

@ -100,6 +100,11 @@ testliterals.append("anaconda_part_device_type_raid")
for fsys in ("xfs", "ext4"): for fsys in ("xfs", "ext4"):
testliterals.append(f"anaconda_part_fs_{fsys}") testliterals.append(f"anaconda_part_fs_{fsys}")
testliterals.append(f"anaconda_part_fs_{fsys}_selected") testliterals.append(f"anaconda_part_fs_{fsys}_selected")
# Needles for Help viewer
for section in ("desktop", "networking", "sound", "files", "user", "hardware",
"accessibility", "tipstricks", "morehelp"):
testliterals.append(f"help_section_{section}")
testliterals.append(f"help_section_content_{section}")
# variable-y in custom_change_device but we only have one value # variable-y in custom_change_device but we only have one value
testliterals.append("anaconda_part_device_sda") testliterals.append("anaconda_part_device_sda")
# for Anaconda help related needles. # for Anaconda help related needles.

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 8,
"ypos": 85,
"width": 48,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"help_breadcrumbs_home"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 11,
"ypos": 93,
"width": 225,
"height": 42,
"type": "match"
},
{
"xpos": 84,
"ypos": 175,
"width": 165,
"height": 20,
"type": "match"
},
{
"xpos": 28,
"ypos": 377,
"width": 146,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"help_main_screen"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 26,
"ypos": 495,
"width": 163,
"height": 30,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_accessibility"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,36 @@
{
"area": [
{
"xpos": 465,
"ypos": 40,
"width": 93,
"height": 32,
"type": "match"
},
{
"xpos": 6,
"ypos": 369,
"width": 79,
"height": 23,
"type": "match"
},
{
"xpos": 5,
"ypos": 453,
"width": 84,
"height": 22,
"type": "match"
},
{
"xpos": 6,
"ypos": 531,
"width": 151,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_accessibility"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 459,
"ypos": 39,
"width": 100,
"height": 35,
"type": "match"
},
{
"xpos": 518,
"ypos": 177,
"width": 145,
"height": 27,
"type": "match"
},
{
"xpos": 8,
"ypos": 404,
"width": 76,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_desktop"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 429,
"ypos": 38,
"width": 161,
"height": 35,
"type": "match"
},
{
"xpos": 6,
"ypos": 252,
"width": 104,
"height": 28,
"type": "match"
},
{
"xpos": 518,
"ypos": 318,
"width": 127,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_files"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -0,0 +1,36 @@
{
"area": [
{
"xpos": 440,
"ypos": 37,
"width": 141,
"height": 37,
"type": "match"
},
{
"xpos": 6,
"ypos": 276,
"width": 70,
"height": 16,
"type": "match"
},
{
"xpos": 7,
"ypos": 582,
"width": 139,
"height": 20,
"type": "match"
},
{
"xpos": 7,
"ypos": 170,
"width": 71,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_hardware"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 454,
"ypos": 34,
"width": 106,
"height": 41,
"type": "match"
},
{
"xpos": 8,
"ypos": 252,
"width": 33,
"height": 20,
"type": "match"
},
{
"xpos": 9,
"ypos": 188,
"width": 132,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_morehelp"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 9,
"ypos": 181,
"width": 168,
"height": 22,
"type": "match"
},
{
"xpos": 421,
"ypos": 38,
"width": 183,
"height": 28,
"type": "match"
},
{
"xpos": 621,
"ypos": 260,
"width": 103,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_networking"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 449,
"ypos": 37,
"width": 125,
"height": 35,
"type": "match"
},
{
"xpos": 102,
"ypos": 255,
"width": 118,
"height": 19,
"type": "match"
},
{
"xpos": 643,
"ypos": 258,
"width": 100,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_sound"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 455,
"ypos": 36,
"width": 108,
"height": 37,
"type": "match"
},
{
"xpos": 3,
"ypos": 245,
"width": 201,
"height": 21,
"type": "match"
},
{
"xpos": 7,
"ypos": 305,
"width": 107,
"height": 26,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_tipstricks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,29 @@
{
"area": [
{
"xpos": 432,
"ypos": 38,
"width": 161,
"height": 34,
"type": "match"
},
{
"xpos": 83,
"ypos": 285,
"width": 101,
"height": 22,
"type": "match"
},
{
"xpos": 84,
"ypos": 468,
"width": 79,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_content_user"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 17,
"ypos": 486,
"width": 180,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_desktop"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 23,
"ypos": 648,
"width": 168,
"height": 26,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_files"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 25,
"ypos": 627,
"width": 221,
"height": 26,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_hardware"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 22,
"ypos": 643,
"width": 182,
"height": 30,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_morehelp"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 26,
"ypos": 596,
"width": 199,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_networking"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 26,
"ypos": 699,
"width": 198,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_sound"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 26,
"ypos": 646,
"width": 158,
"height": 27,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_tipstricks"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 26,
"ypos": 597,
"width": 177,
"height": 30,
"type": "match"
}
],
"properties": [],
"tags": [
"help_section_user"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -1084,6 +1084,23 @@
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
} }
}, },
"help_viewer": {
"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/help",
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
}
},
"gnome_text_editor": { "gnome_text_editor": {
"profiles": { "profiles": {
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,

View File

@ -0,0 +1,45 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This script check that Help can be used on Gnome.
# This subroutine opens a section, checks that its content
# is listed and returns to the main page.
sub visit_section {
my $section = shift;
send_key_until_needlematch("help_section_$section", "down", 40, 1 );
click_lastmatch();
assert_screen("help_section_content_$section");
assert_and_click("help_breadcrumbs_home");
assert_screen("help_main_screen");
}
sub run {
my $self = shift;
# Run the application
menu_launch_type("Help");
assert_screen("help_main_screen");
# Let us click on Section to open it and check that there is content inside.
visit_section("desktop");
visit_section("networking");
visit_section("sound");
visit_section("files");
visit_section("user");
visit_section("hardware");
visit_section("accessibility");
visit_section("tipstricks");
visit_section("morehelp");
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et: