mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-01-22 08:33:08 +00:00
Add notifications.
This commit is contained in:
parent
64890b210c
commit
acce9b9088
35
tests/applications/system-settings/notifications.pm
Normal file
35
tests/applications/system-settings/notifications.pm
Normal file
@ -0,0 +1,35 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This is to check up the Notification tab.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
assert_and_click("settings_menu_notifications");
|
||||
|
||||
# Switch off notifications
|
||||
assert_and_click("settings_notifications_dontdisturb");
|
||||
|
||||
# Check that the application uses now Darkmode
|
||||
assert_screen("settings_notifications_off");
|
||||
|
||||
# Switch off Clocks notifications.
|
||||
assert_and_click("settings_notifications_clocks");
|
||||
assert_and_click("settings_notifications_clocks_disable");
|
||||
send_key("esc");
|
||||
|
||||
# Check that the status says off
|
||||
assert_screen("settings_notifications_clocks_off");
|
||||
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1, always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
Loading…
Reference in New Issue
Block a user