on xenial help sign in
Removed sleep() from and added additional assertion to snap-decision test.
commit96f08991765d23ebbfb52b81f5b781415507b4a2 authorMirco Müller <mirco.mueller@ubuntu.com> dateFri 2 Aug 2013, 11:01 (13 years ago) parent4f961c9
1 file changed+1−3
tests/autopilot/unity8/shell/tests/test_notifications.py+1−3
tests/autopilot/unity8/shell/tests/test_notifications.py+1−3
@@ -194,14 +194,12 @@ class InteractiveNotificationBase(NotificationsBase):
194194 get_notification = lambda: notify_list.select_single('Notification')
195195 self.assertThat(get_notification, Eventually(NotEquals(None)))
196196 notification = get_notification()
197− #self._assert_notification(notification, None, None, True, True, 1.0)
197+ self._assert_notification(notification, None, None, True, True, 1.0)
198198 self.touch.tap_object(notification.select_single(objectName="button1"))
199− # Veebers: this needs a better check as it's happening to quick.
200199 self.assertThat(
201200 notification.select_single(objectName="buttonRow").expanded,
202201 Eventually(Equals(True))
203202 )
204− time.sleep(2)
205203 self.touch.tap_object(notification.select_single(objectName="button4"))
206204 self.assert_notification_action_id_was_called("action_decline_4")
207205