on xenial help sign in
Deleted incoming-call snap-decision notification autopilot-test as this is now covered in the qml-based set of notification-tests.
commitaa1e7cc35b1a6163c144008e4c9b3caf690bd783 authorMirco Müller <mirco.mueller@canonical.com> dateFri 24 Oct 2014, 09:33 (12 years ago) parent7f16e39
1 file changed−51
tests/autopilot/unity8/shell/tests/test_notifications.py−51
tests/autopilot/unity8/shell/tests/test_notifications.py−51
@@ -157,57 +157,6 @@ class InteractiveNotificationBase(NotificationsBase):
157157
158158 self.assert_notification_action_id_was_called('action_id')
159159
160− def test_sd_incoming_call(self):
161− """Rejecting a call should make notification expand and
162− offer more options."""
163− unity_proxy = self.launch_unity()
164− unlock_unity(unity_proxy)
165−
166− summary = "Incoming call"
167− body = "Frank Zappa\n+44 (0)7736 027340"
168− icon_path = self._get_icon_path('avatars/anna_olsson.png')
169− hints = [
170− ("x-canonical-secondary-icon", "incoming-call"),
171− ("x-canonical-snap-decisions", "true"),
172− ("x-canonical-private-affirmative-tint", "true"),
173− ("x-canonical-private-rejection-tint", "true"),
174− ]
175−
176− actions = [
177− ('action_accept', 'Hold + Answer'),
178− ('action_decline_1', 'End + Answer'),
179− ('action_decline_2', 'Decline'),
180− ('action_decline_3', 'message:I missed your call - can you call me now?'),
181− ('action_decline_4', 'message:I\'m running late. I\'m on my way.'),
182− ('action_decline_5', 'message:I\'m busy at the moment. I\'ll call later.'),
183− ('action_decline_6', 'edit:Custom'),
184− ]
185−
186− self._create_interactive_notification(
187− summary,
188− body,
189− icon_path,
190− "NORMAL",
191− actions,
192− hints
193− )
194−
195− notify_list = self._get_notifications_list()
196− get_notification = lambda: notify_list.wait_select_single(
197− 'Notification', objectName='notification1')
198− notification = get_notification()
199− self._assert_notification(notification, summary, body, True, True, 1.0)
200− notification.pointing_device.click_object(
201− notification.select_single(objectName="combobutton_dropdown"))
202− self.assertThat(
203− notification.select_single(objectName="notify_button2").expanded,
204− Eventually(Equals(True)))
205− time.sleep(2)
206− notification.pointing_device.click_object(
207− notification.select_single(objectName="notify_button4"))
208− self.assert_notification_action_id_was_called("action_decline_4")
209−
210−
211160 def test_sd_one_over_two_layout(self):
212161 """Snap-decision with three actions should use one-over two button layout."""
213162 unity_proxy = self.launch_unity()