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:
|