on xenial help sign in
Completed the AP-tests for the new modal snap-decision notifications.
cc008fcMirco Müller
tests/autopilot/unity8/shell/tests/test_notifications.py+14−1
@@ -236,6 +236,13 @@ class InteractiveNotificationBase(NotificationsBase):
236 hints
236 hints
237 )
237 )
238
238
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
239 notify_list = self._get_notifications_list()
246 notify_list = self._get_notifications_list()
240 get_notification = lambda: notify_list.wait_select_single(
247 get_notification = lambda: notify_list.wait_select_single(
241 'Notification', objectName='notification0')
248 'Notification', objectName='notification0')
@@ -247,7 +254,6 @@ class InteractiveNotificationBase(NotificationsBase):
247 def test_modal_sd_with_greeter (self):
254 def test_modal_sd_with_greeter (self):
248 """A snap-decision on a phone should not block input to the greeter beneath it."""
255 """A snap-decision on a phone should not block input to the greeter beneath it."""
249 unity_proxy = self.launch_unity()
256 unity_proxy = self.launch_unity()
250− greeter = self.main_window.get_greeter()
251
257
252 summary = "Incoming file"
258 summary = "Incoming file"
253 body = "Frank would like to send you the file: essay.pdf"
259 body = "Frank would like to send you the file: essay.pdf"
@@ -271,6 +277,13 @@ class InteractiveNotificationBase(NotificationsBase):
271 hints
277 hints
272 )
278 )
273
279
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
274 notify_list = self._get_notifications_list()
287 notify_list = self._get_notifications_list()
275 get_notification = lambda: notify_list.wait_select_single(
288 get_notification = lambda: notify_list.wait_select_single(
276 'Notification', objectName='notification0')
289 'Notification', objectName='notification0')