mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 05:53:09 +00:00
54 lines
1.3 KiB
Perl
54 lines
1.3 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This script:
|
|
# - starts the Settings application and checks that it has started,
|
|
# - navigates in the Settings to the Accessibility tab,
|
|
# - enables the Accessibility menu in the upper right corner,
|
|
# - creates a milestone for consecutive testing.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Start Settings.
|
|
menu_launch_type('settings');
|
|
|
|
# Check that it has started.
|
|
assert_screen('apps_run_settings');
|
|
|
|
# Maximize the window
|
|
# This is always better to maintain correct focus
|
|
# throughout the testing.
|
|
send_key('super-up');
|
|
|
|
# On smaller screens, the Accessibility tab is not visible
|
|
# for simple assertion, so we will use the Search bar to
|
|
# search for it.
|
|
assert_and_click('magnifying-glass-icon');
|
|
|
|
# Type 'accessibility' into the search box.
|
|
type_string('accessibility');
|
|
|
|
# Click on Accessibility.
|
|
assert_and_click('settings_accessibility_icon');
|
|
|
|
# Check that the accessibility screen is displayed.
|
|
assert_screen('settings_accessibility_screen');
|
|
|
|
# Enable the accessibility menu.
|
|
assert_and_click('settings_accessibility_menu_enable');
|
|
|
|
# Check that the menu has been enabled.
|
|
assert_screen('acc_accessibility_menu');
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|
|
|