1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-25 01:43:10 +00:00
os-autoinst-distri-fedora/tests/applications/system-settings/notifications.pm

36 lines
830 B
Perl
Raw Normal View History

2022-03-07 14:01:35 +00:00
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");
2022-03-08 13:02:32 +00:00
# Set notifications to Do Not Disturb
2022-03-07 14:01:35 +00:00
assert_and_click("settings_notifications_dontdisturb");
2022-03-08 13:02:32 +00:00
# Check that an icon appears showing that notifications are off.
2022-03-07 14:01:35 +00:00
assert_screen("settings_notifications_off");
2022-03-08 13:02:32 +00:00
# Switch off notifications for the Clocks application.
2022-03-07 14:01:35 +00:00
assert_and_click("settings_notifications_clocks");
assert_and_click("settings_notifications_clocks_disable");
send_key("esc");
2022-03-08 13:02:32 +00:00
# Check that the application status shows the OFF setting.
2022-03-07 14:01:35 +00:00
assert_screen("settings_notifications_clocks_off");
}
sub test_flags {
return {fatal => 1, always_rollback => 1};
}
1;
# vim: set sw=4 et: