mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-01-07 09:43:09 +00:00
Add test for tab.
This commit is contained in:
parent
4c8bc4d277
commit
64890b210c
@ -13,11 +13,12 @@ sub run {
|
|||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
menu_launch_type("settings");
|
menu_launch_type("settings");
|
||||||
# Check that is started
|
|
||||||
assert_screen 'apps_run_settings';
|
|
||||||
|
|
||||||
# Fullsize the Settings window.
|
# Fullsize the Settings window.
|
||||||
send_key("super-up");
|
send_key("super-up");
|
||||||
|
|
||||||
|
# Check that is started
|
||||||
|
assert_screen 'apps_run_settings';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
38
tests/applications/system-settings/appearance.pm
Normal file
38
tests/applications/system-settings/appearance.pm
Normal 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:
|
22
tests/applications/system-settings/network.pm
Normal file
22
tests/applications/system-settings/network.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user