1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-28 09:54:32 +00:00
os-autoinst-distri-fedora/tests/applications/clocks/about.pm

51 lines
1.3 KiB
Perl
Raw Normal View History

2022-06-17 08:01:31 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# I as a user want to be able use the menu to enter further functions.
sub run {
my $self = shift;
# Click on the burger menu.
assert_and_click("gnome_burger_menu");
# Click on About Clocks to see the About info.
assert_and_click("clocks_menu_about");
assert_screen("clocks_about_displayed");
assert_and_click("gnome_button_credits");
assert_screen("clocks_credits_shown");
send_key("esc");
# We have been hitting the Esc key here to
# leave the About dialogue, but it seems that
# this time (Fedora37), it needs an extra Esc hit, because
# the Credit screen takes one to come back
# to the previous screen.
# Hit one more Esc, if the About window
# is still displayed
if (check_screen("clocks_about_displayed")) {
send_key("esc");
}
2022-06-17 08:01:31 +00:00
# Use the menu to see the shortcuts
assert_and_click("gnome_burger_menu");
assert_and_click("clocks_menu_shortcuts");
assert_screen("clocks_shortcuts_shown");
send_key("esc");
# Use the menu to see the Help
assert_and_click("gnome_burger_menu");
assert_and_click("clocks_menu_help");
assert_screen("clocks_help_shown");
}
sub test_flags {
# Rollback after test is over.
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: