1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-09-30 09:48:49 +00:00
os-autoinst-distri-fedora/tests/applications/fonts/about.pm
Adam Williamson f6a843727c Be consistent about credits, website and legal selectors
Most GNOME apps now have a standardized About screen with links
(not buttons) for credits, website and links. Lukas called these
'selectors', which I like - but inconsistently; as well as
generic gnome_selector_foo needles, we have some app-specific
needles, and some with 'button' in the name.

Let's always call these 'selectors', always use generic needle
names (since the same needles should match for almost all apps),
and have the one remaining case where we have a 'button' (the
credits button in Evince) be the variant case, handled by putting
'button' in the needle name, but using the same tag as other
needles.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-19 17:39:32 -07:00

43 lines
1.0 KiB
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This script will examine that the About dialogue
# works as expected.
sub run {
my $self = shift;
# Click on the Info icon in the upper right corner.
assert_and_click("gnome_icon_info");
# Check that the correct font is shown.
assert_screen("fonts_about_shown");
# Click on Credits to see them.
assert_and_click("gnome_selector_credits");
# Check that Credits are shown
assert_screen("fonts_credits_shown");
# Return to previous screen
send_key("esc");
# Click on Legal to see legal info.
assert_and_click("gnome_selector_legal");
# Check that Credits are shown
assert_screen("fonts_legal_shown");
# Return to previous screen
send_key("esc");
# Check that a project website can be reached.
assert_and_click("gnome_selector_website");
# Check that the website has been opened
assert_screen("fonts_website_opened");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: