diff --git a/check-needles.py b/check-needles.py index e4546dd0..65c0a59a 100755 --- a/check-needles.py +++ b/check-needles.py @@ -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. diff --git a/needles/gnome/apps/help_viewer/help_breadcrumbs_home.json b/needles/gnome/apps/help_viewer/help_breadcrumbs_home.json new file mode 100644 index 00000000..0b5ecdd5 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_breadcrumbs_home.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 8, + "ypos": 85, + "width": 48, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_breadcrumbs_home" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_breadcrumbs_home.png b/needles/gnome/apps/help_viewer/help_breadcrumbs_home.png new file mode 100644 index 00000000..bae36b2c Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_breadcrumbs_home.png differ diff --git a/needles/gnome/apps/help_viewer/help_main_screen.json b/needles/gnome/apps/help_viewer/help_main_screen.json new file mode 100644 index 00000000..285bf994 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_main_screen.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_main_screen.png b/needles/gnome/apps/help_viewer/help_main_screen.png new file mode 100644 index 00000000..8db20d7c Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_main_screen.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_accessibility.json b/needles/gnome/apps/help_viewer/help_section_accessibility.json new file mode 100644 index 00000000..76f023ca --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_accessibility.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 26, + "ypos": 495, + "width": 163, + "height": 30, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_accessibility" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_accessibility.png b/needles/gnome/apps/help_viewer/help_section_accessibility.png new file mode 100644 index 00000000..1afd83a0 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_accessibility.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_accessibility.json b/needles/gnome/apps/help_viewer/help_section_content_accessibility.json new file mode 100644 index 00000000..b5591914 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_accessibility.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_accessibility.png b/needles/gnome/apps/help_viewer/help_section_content_accessibility.png new file mode 100644 index 00000000..b1e5bdc2 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_accessibility.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_desktop.json b/needles/gnome/apps/help_viewer/help_section_content_desktop.json new file mode 100644 index 00000000..c12eb4a9 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_desktop.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_desktop.png b/needles/gnome/apps/help_viewer/help_section_content_desktop.png new file mode 100644 index 00000000..8ff00654 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_desktop.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_files.json b/needles/gnome/apps/help_viewer/help_section_content_files.json new file mode 100644 index 00000000..65b9b0a7 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_files.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_files.png b/needles/gnome/apps/help_viewer/help_section_content_files.png new file mode 100644 index 00000000..e4aa32b7 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_files.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_hardware.json b/needles/gnome/apps/help_viewer/help_section_content_hardware.json new file mode 100644 index 00000000..a325d3cb --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_hardware.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_hardware.png b/needles/gnome/apps/help_viewer/help_section_content_hardware.png new file mode 100644 index 00000000..e78245ec Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_hardware.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_morehelp.json b/needles/gnome/apps/help_viewer/help_section_content_morehelp.json new file mode 100644 index 00000000..e56c8411 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_morehelp.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_morehelp.png b/needles/gnome/apps/help_viewer/help_section_content_morehelp.png new file mode 100644 index 00000000..b866a7c3 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_morehelp.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_networking.json b/needles/gnome/apps/help_viewer/help_section_content_networking.json new file mode 100644 index 00000000..28963a9c --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_networking.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_networking.png b/needles/gnome/apps/help_viewer/help_section_content_networking.png new file mode 100644 index 00000000..2f54b6ba Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_networking.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_sound.json b/needles/gnome/apps/help_viewer/help_section_content_sound.json new file mode 100644 index 00000000..fe4dfe34 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_sound.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_sound.png b/needles/gnome/apps/help_viewer/help_section_content_sound.png new file mode 100644 index 00000000..d11a2d18 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_sound.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_tipstricks.json b/needles/gnome/apps/help_viewer/help_section_content_tipstricks.json new file mode 100644 index 00000000..e7f8d033 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_tipstricks.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_tipstricks.png b/needles/gnome/apps/help_viewer/help_section_content_tipstricks.png new file mode 100644 index 00000000..592d7c0e Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_tipstricks.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_content_user.json b/needles/gnome/apps/help_viewer/help_section_content_user.json new file mode 100644 index 00000000..058b96dc --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_content_user.json @@ -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" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_content_user.png b/needles/gnome/apps/help_viewer/help_section_content_user.png new file mode 100644 index 00000000..3fe7c87c Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_content_user.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_desktop.json b/needles/gnome/apps/help_viewer/help_section_desktop.json new file mode 100644 index 00000000..999afd94 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_desktop.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 17, + "ypos": 486, + "width": 180, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_desktop" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_desktop.png b/needles/gnome/apps/help_viewer/help_section_desktop.png new file mode 100644 index 00000000..11f92264 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_desktop.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_files.json b/needles/gnome/apps/help_viewer/help_section_files.json new file mode 100644 index 00000000..610a28a4 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_files.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 23, + "ypos": 648, + "width": 168, + "height": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_files" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_files.png b/needles/gnome/apps/help_viewer/help_section_files.png new file mode 100644 index 00000000..2e56d372 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_files.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_hardware.json b/needles/gnome/apps/help_viewer/help_section_hardware.json new file mode 100644 index 00000000..62b358cc --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_hardware.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 25, + "ypos": 627, + "width": 221, + "height": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_hardware" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_hardware.png b/needles/gnome/apps/help_viewer/help_section_hardware.png new file mode 100644 index 00000000..568c17b2 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_hardware.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_morehelp.json b/needles/gnome/apps/help_viewer/help_section_morehelp.json new file mode 100644 index 00000000..b4177c19 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_morehelp.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 22, + "ypos": 643, + "width": 182, + "height": 30, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_morehelp" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_morehelp.png b/needles/gnome/apps/help_viewer/help_section_morehelp.png new file mode 100644 index 00000000..b8aa723d Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_morehelp.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_networking.json b/needles/gnome/apps/help_viewer/help_section_networking.json new file mode 100644 index 00000000..e4e409ad --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_networking.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 26, + "ypos": 596, + "width": 199, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_networking" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_networking.png b/needles/gnome/apps/help_viewer/help_section_networking.png new file mode 100644 index 00000000..2a6f35f8 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_networking.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_sound.json b/needles/gnome/apps/help_viewer/help_section_sound.json new file mode 100644 index 00000000..c804f629 --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_sound.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 26, + "ypos": 699, + "width": 198, + "height": 27, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_sound" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_sound.png b/needles/gnome/apps/help_viewer/help_section_sound.png new file mode 100644 index 00000000..3d970b6e Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_sound.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_tipstricks.json b/needles/gnome/apps/help_viewer/help_section_tipstricks.json new file mode 100644 index 00000000..02bb18ec --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_tipstricks.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 26, + "ypos": 646, + "width": 158, + "height": 27, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_tipstricks" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_tipstricks.png b/needles/gnome/apps/help_viewer/help_section_tipstricks.png new file mode 100644 index 00000000..e10797ee Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_tipstricks.png differ diff --git a/needles/gnome/apps/help_viewer/help_section_user.json b/needles/gnome/apps/help_viewer/help_section_user.json new file mode 100644 index 00000000..4fa289fa --- /dev/null +++ b/needles/gnome/apps/help_viewer/help_section_user.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 26, + "ypos": 597, + "width": 177, + "height": 30, + "type": "match" + } + ], + "properties": [], + "tags": [ + "help_section_user" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/help_viewer/help_section_user.png b/needles/gnome/apps/help_viewer/help_section_user.png new file mode 100644 index 00000000..a2701703 Binary files /dev/null and b/needles/gnome/apps/help_viewer/help_section_user.png differ diff --git a/templates.fif.json b/templates.fif.json index 014e7114..b833b33b 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -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, diff --git a/tests/applications/help/help.pm b/tests/applications/help/help.pm new file mode 100644 index 00000000..d306c9ea --- /dev/null +++ b/tests/applications/help/help.pm @@ -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: +