on xenial help sign in
Fix notification ap-test assertions.
commitfd0cfea4c2fbff5528233d5a8ab6414d1e749d3f authorMirco Müller <mirco.mueller@canonical.com> dateWed 16 Apr 2014, 13:43 (13 years ago) parent8981abae2e4565
1 file changed+3−4
tests/autopilot/unity8/shell/tests/test_notifications.py+3−4
tests/autopilot/unity8/shell/tests/test_notifications.py+3−4
@@ -196,7 +196,7 @@ class InteractiveNotificationBase(NotificationsBase):
196196 get_notification = lambda: notify_list.wait_select_single(
197197 'Notification', objectName='notification1')
198198 notification = get_notification()
199− self._assert_notification(notification, None, None, True, True, 1.0)
199+ self._assert_notification(notification, summary, body, True, True, 1.0)
200200 initial_height = notification.height
201201 self.touch.tap_object(notification.select_single(objectName="button1"))
202202 self.assertThat(
@@ -403,7 +403,6 @@ class EphemeralNotificationsTests(NotificationsBase):
403403
404404 notification = lambda: notify_list.wait_select_single(
405405 'Notification', objectName='notification1')
406−
407406 self._assert_notification(
408407 notification(),
409408 summary,
@@ -579,7 +578,7 @@ class EphemeralNotificationsTests(NotificationsBase):
579578 icon_path = self._get_icon_path('avatars/amanda.png')
580579 notification.update(summary, body, icon_path)
581580 notification.show()
582− self._assert_notification(get_notification(), summary, body)
581+ self._assert_notification(get_notification(), summary, body, True, False, 1.0)
583582
584583 def test_update_notification_layout_change(self):
585584 """Notification must allow updating its contents and layout while
@@ -626,7 +625,7 @@ class EphemeralNotificationsTests(NotificationsBase):
626625 notification.show()
627626
628627 self.assertThat(get_notification, Eventually(NotEquals(None)))
629− self._assert_notification(get_notification(), summary, body, False)
628+ self._assert_notification(get_notification(), summary, body, False, False, 1.0)
630629
631630 def test_append_hint(self):
632631 """Notification has to accumulate body-text using append-hint."""