on xenial help sign in
Fixed the failure of notification autopilot-test test_sd_incoming_call.
commit641878c407d89573aa110696c2071b5dbf6ef456 authorMirco Müller <mirco.mueller@ubuntu.com> dateTue 28 Jan 2014, 15:58 (13 years ago) parentce2f3a17f1d8cf
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
@@ -59,7 +59,7 @@ class NotificationsBase(UnityTestCase):
5959 return '/usr/share/unity8/graphics/' + icon_name
6060 else:
6161 return os.path.abspath(
62− os.getcwd() + "/../../graphics/" + icon_name
62+ os.getcwd() + "../../qml/graphics/" + icon_name
6363 )
6464
6565 def _get_notifications_list(self):
@@ -161,8 +161,6 @@ class InteractiveNotificationBase(NotificationsBase):
161161 unity_proxy = self.launch_unity()
162162 unlock_unity(unity_proxy)
163163
164− notify_list = self._get_notifications_list()
165−
166164 summary = "Incoming call"
167165 body = "Frank Zappa\n+44 (0)7736 027340"
168166 icon_path = self._get_icon_path('avatars/anna_olsson.png')
@@ -191,8 +189,9 @@ class InteractiveNotificationBase(NotificationsBase):
191189 hints
192190 )
193191
192+ notify_list = self._get_notifications_list()
194193 get_notification = lambda: notify_list.wait_select_single(
195− 'Notification', objectName='notification1')
194+ 'Notification', objectName='notification0')
196195 notification = get_notification()
197196 self._assert_notification(notification, None, None, True, True, 1.0)
198197 initial_height = notification.height