on xenial help sign in
Completed the AP-tests for the new modal snap-decision notifications.
commitcc008fc221362119bbb2edc7bb71ad94ead6f3c0 authorMirco Müller <mirco.mueller@canonical.com> dateFri 14 Mar 2014, 09:39 (13 years ago) parentbcdd69c
1 file changed+14−1
tests/autopilot/unity8/shell/tests/test_notifications.py+14−1
tests/autopilot/unity8/shell/tests/test_notifications.py+14−1
@@ -236,6 +236,13 @@ class InteractiveNotificationBase(NotificationsBase):
236236 hints
237237 )
238238
239+ # verify that we cannot reveal the launcher (no longer interact with the shell)
240+ time.sleep(1)
241+ self.main_window.show_dash_swiping()
242+ launcher = self.main_window.get_launcher()
243+ self.assertThat(launcher.shown, Eventually(Equals(False)))
244+
245+ # verify and interact with the triggered snap-decision notification
239246 notify_list = self._get_notifications_list()
240247 get_notification = lambda: notify_list.wait_select_single(
241248 'Notification', objectName='notification0')
@@ -247,7 +254,6 @@ class InteractiveNotificationBase(NotificationsBase):
247254 def test_modal_sd_with_greeter (self):
248255 """A snap-decision on a phone should not block input to the greeter beneath it."""
249256 unity_proxy = self.launch_unity()
250− greeter = self.main_window.get_greeter()
251257
252258 summary = "Incoming file"
253259 body = "Frank would like to send you the file: essay.pdf"
@@ -271,6 +277,13 @@ class InteractiveNotificationBase(NotificationsBase):
271277 hints
272278 )
273279
280+ # verify that we can still reveal the launcher (interact with the shell)
281+ time.sleep(1)
282+ self.main_window.show_dash_swiping()
283+ launcher = self.main_window.get_launcher()
284+ self.assertThat(launcher.shown, Eventually(Equals(True)))
285+
286+ # verify and interact with the triggered snap-decision notification
274287 notify_list = self._get_notifications_list()
275288 get_notification = lambda: notify_list.wait_select_single(
276289 'Notification', objectName='notification0')