From acce9b9088ba3e69a4ff14158996134833783224 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Mon, 7 Mar 2022 15:01:35 +0100 Subject: [PATCH] Add notifications. --- .../system-settings/notifications.pm | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/applications/system-settings/notifications.pm diff --git a/tests/applications/system-settings/notifications.pm b/tests/applications/system-settings/notifications.pm new file mode 100644 index 00000000..bcde7a69 --- /dev/null +++ b/tests/applications/system-settings/notifications.pm @@ -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: