Create tests for Help.
@ -100,6 +100,11 @@ testliterals.append("anaconda_part_device_type_raid")
|
||||
for fsys in ("xfs", "ext4"):
|
||||
testliterals.append(f"anaconda_part_fs_{fsys}")
|
||||
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
|
||||
testliterals.append("anaconda_part_device_sda")
|
||||
# for Anaconda help related needles.
|
||||
|
15
needles/gnome/apps/help_viewer/help_breadcrumbs_home.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 8,
|
||||
"ypos": 85,
|
||||
"width": 48,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_breadcrumbs_home"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_breadcrumbs_home.png
Normal file
After Width: | Height: | Size: 69 KiB |
29
needles/gnome/apps/help_viewer/help_main_screen.json
Normal 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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_main_screen.png
Normal file
After Width: | Height: | Size: 50 KiB |
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 26,
|
||||
"ypos": 495,
|
||||
"width": 163,
|
||||
"height": 30,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_accessibility"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_accessibility.png
Normal file
After Width: | Height: | Size: 56 KiB |
@ -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"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 65 KiB |
@ -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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_content_desktop.png
Normal file
After Width: | Height: | Size: 69 KiB |
@ -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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_content_files.png
Normal file
After Width: | Height: | Size: 61 KiB |
@ -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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_content_hardware.png
Normal file
After Width: | Height: | Size: 82 KiB |
@ -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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_content_morehelp.png
Normal file
After Width: | Height: | Size: 34 KiB |
@ -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"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 56 KiB |
@ -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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_content_sound.png
Normal file
After Width: | Height: | Size: 66 KiB |
@ -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"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 43 KiB |
@ -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"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_content_user.png
Normal file
After Width: | Height: | Size: 45 KiB |
15
needles/gnome/apps/help_viewer/help_section_desktop.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 17,
|
||||
"ypos": 486,
|
||||
"width": 180,
|
||||
"height": 24,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_desktop"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_desktop.png
Normal file
After Width: | Height: | Size: 50 KiB |
15
needles/gnome/apps/help_viewer/help_section_files.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 23,
|
||||
"ypos": 648,
|
||||
"width": 168,
|
||||
"height": 26,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_files"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_files.png
Normal file
After Width: | Height: | Size: 50 KiB |
15
needles/gnome/apps/help_viewer/help_section_hardware.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 25,
|
||||
"ypos": 627,
|
||||
"width": 221,
|
||||
"height": 26,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_hardware"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_hardware.png
Normal file
After Width: | Height: | Size: 56 KiB |
15
needles/gnome/apps/help_viewer/help_section_morehelp.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 22,
|
||||
"ypos": 643,
|
||||
"width": 182,
|
||||
"height": 30,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_morehelp"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_morehelp.png
Normal file
After Width: | Height: | Size: 53 KiB |
15
needles/gnome/apps/help_viewer/help_section_networking.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 26,
|
||||
"ypos": 596,
|
||||
"width": 199,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_networking"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_networking.png
Normal file
After Width: | Height: | Size: 50 KiB |
15
needles/gnome/apps/help_viewer/help_section_sound.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 26,
|
||||
"ypos": 699,
|
||||
"width": 198,
|
||||
"height": 27,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_sound"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_sound.png
Normal file
After Width: | Height: | Size: 50 KiB |
15
needles/gnome/apps/help_viewer/help_section_tipstricks.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 26,
|
||||
"ypos": 646,
|
||||
"width": 158,
|
||||
"height": 27,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_tipstricks"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_tipstricks.png
Normal file
After Width: | Height: | Size: 53 KiB |
15
needles/gnome/apps/help_viewer/help_section_user.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 26,
|
||||
"ypos": 597,
|
||||
"width": 177,
|
||||
"height": 30,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"help_section_user"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/help_viewer/help_section_user.png
Normal file
After Width: | Height: | Size: 56 KiB |
@ -1084,6 +1084,23 @@
|
||||
"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": {
|
||||
"profiles": {
|
||||
"fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50,
|
||||
|
45
tests/applications/help/help.pm
Normal 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:
|
||||
|