1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-06 01:13:07 +00:00

Add test for tab.

This commit is contained in:
Lukas Ruzicka 2022-03-07 14:37:25 +01:00
parent 4c8bc4d277
commit 64890b210c
3 changed files with 63 additions and 2 deletions

View File

@ -13,11 +13,12 @@ sub run {
# Start the application
menu_launch_type("settings");
# Check that is started
assert_screen 'apps_run_settings';
# Fullsize the Settings window.
send_key("super-up");
# Check that is started
assert_screen 'apps_run_settings';
}

View File

@ -0,0 +1,38 @@
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:

View File

@ -0,0 +1,22 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This is to check up the Network tab.
sub run {
my $self = shift;
assert_and_click("settings_menu_network");
assert_screen("settings_network_wired_connected");
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: