1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-05 03:23:09 +00:00
os-autoinst-distri-fedora/tests/applications/system-settings/appearance.pm

39 lines
738 B
Perl
Raw Normal View History

2022-03-07 13:37:25 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# This is to check up the Appearance tab.
sub run {
my $self = shift;
assert_and_click("settings_menu_appearance");
# Change style to Dark
assert_and_click("settings_appearance_set_darkmode");
# Check that the application uses now Darkmode
assert_screen("settings_appearance_darkmode_on");
# Change background
assert_and_click("settings_appearance_set_background");
# Switch off the application.
send_key("alt-f4");
# Check that the background is correctly changed.
assert_screen("settings_alternate_background_set");
}
sub test_flags {
return {fatal => 1, always_rollback => 1};
}
1;
# vim: set sw=4 et: