Merge lp:~acerisara/ubuntu-calendar-app/test-new-event-failing into lp:ubuntu-calendar-app

Proposed by Andrea Cerisara
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 159
Merged at revision: 161
Proposed branch: lp:~acerisara/ubuntu-calendar-app/test-new-event-failing
Merge into: lp:ubuntu-calendar-app
Diff against target: 28 lines (+7/-2)
1 file modified
tests/autopilot/calendar_app/tests/test_calendar.py (+7/-2)
To merge this branch: bzr merge lp:~acerisara/ubuntu-calendar-app/test-new-event-failing
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Calendar Developers Pending
Review via email: mp+192398@code.launchpad.net

Commit message

Fixed unstable autopilot test_new_event.

Description of the change

Trying to fix the randomly failing test_new_event on CI (it works well locally).

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/calendar_app/tests/test_calendar.py'
--- tests/autopilot/calendar_app/tests/test_calendar.py 2013-10-09 01:01:02 +0000
+++ tests/autopilot/calendar_app/tests/test_calendar.py 2013-10-23 20:47:34 +0000
@@ -27,8 +27,11 @@
27 y = int(scroller.globalRect[1] + 0.9 * scroller.globalRect[3])27 y = int(scroller.globalRect[1] + 0.9 * scroller.globalRect[3])
28 self.pointing_device.move(x, y)28 self.pointing_device.move(x, y)
29 while (scroller.currentIndex != hours):29 while (scroller.currentIndex != hours):
30 current_index = scroller.currentIndex
30 self.pointing_device.click()31 self.pointing_device.click()
31 scroller.currentIndex.wait_for((scroller.currentIndex + 1) % 24)32 self.assertThat(scroller.currentIndex, Eventually(
33 Equals((current_index + 1) % 24)))
34
32 # Scroll minutes to selected value35 # Scroll minutes to selected value
33 scroller = picker.select_single("Scroller",36 scroller = picker.select_single("Scroller",
34 objectName="minuteScroller")37 objectName="minuteScroller")
@@ -36,8 +39,10 @@
36 y = int(scroller.globalRect[1] + 0.9 * scroller.globalRect[3])39 y = int(scroller.globalRect[1] + 0.9 * scroller.globalRect[3])
37 self.pointing_device.move(x, y)40 self.pointing_device.move(x, y)
38 while (scroller.currentIndex != minutes):41 while (scroller.currentIndex != minutes):
42 current_index = scroller.currentIndex
39 self.pointing_device.click()43 self.pointing_device.click()
40 scroller.currentIndex.wait_for((scroller.currentIndex + 1) % 60)44 self.assertThat(scroller.currentIndex, Eventually(
45 Equals((current_index + 1) % 60)))
4146
42 def hideOSK(self):47 def hideOSK(self):
43 start_time_field = self.main_view.get_event_start_time_field()48 start_time_field = self.main_view.get_event_start_time_field()

Subscribers

People subscribed via source and target branches

to status/vote changes: