2022-06-20 12:44:56 +00:00
|
|
|
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 {
|
2022-07-28 20:32:57 +00:00
|
|
|
my $section = shift;
|
|
|
|
send_key_until_needlematch("help_section_$section", "down", 40, 1);
|
2023-05-02 16:37:02 +00:00
|
|
|
# we have to wait then re-assert, because the down movement is
|
|
|
|
# animated, so we may match while it's still animating and then
|
|
|
|
# when the animation is complete the section title may be in a
|
|
|
|
# different place to where we first saw it
|
|
|
|
wait_still_screen 2;
|
|
|
|
assert_and_click("help_section_$section");
|
2022-07-28 20:32:57 +00:00
|
|
|
assert_screen("help_section_content_$section");
|
|
|
|
assert_and_click("help_breadcrumbs_home");
|
|
|
|
assert_screen("help_main_screen");
|
2022-06-20 12:44:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2022-07-15 18:20:09 +00:00
|
|
|
|
2022-07-28 20:32:57 +00:00
|
|
|
# Run the application
|
|
|
|
menu_launch_type("Help");
|
|
|
|
assert_screen("help_main_screen", timeout => 60);
|
|
|
|
|
|
|
|
# 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");
|
2022-06-20 12:44:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {fatal => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|