ubuntu-touch-coreapps-reviewers team mailing list archive
-
ubuntu-touch-coreapps-reviewers team
-
Mailing list archive
-
Message #02337
[Merge] lp:~nskaggs/ubuntu-calendar-app/add-waits-for-selects into lp:ubuntu-calendar-app
Nicholas Skaggs has proposed merging lp:~nskaggs/ubuntu-calendar-app/add-waits-for-selects into lp:ubuntu-calendar-app.
Commit message:
Fix for object not found when changing UI
Requested reviews:
Ubuntu Calendar Developers (ubuntu-calendar-dev)
For more details, see:
https://code.launchpad.net/~nskaggs/ubuntu-calendar-app/add-waits-for-selects/+merge/259932
Fix for object not found when changing UI
--
Your team Ubuntu Calendar Developers is requested to review the proposed merge of lp:~nskaggs/ubuntu-calendar-app/add-waits-for-selects into lp:ubuntu-calendar-app.
=== modified file 'tests/autopilot/calendar_app/__init__.py'
--- tests/autopilot/calendar_app/__init__.py 2015-04-29 19:59:13 +0000
+++ tests/autopilot/calendar_app/__init__.py 2015-05-22 14:33:59 +0000
@@ -174,39 +174,43 @@
def get_event_view(self, parent_object=None):
if parent_object is None:
parent_object = self
- return parent_object.select_single("EventView")
+ return parent_object.wait_select_single("EventView")
def get_event_details(self, parent_object=None):
if parent_object is None:
parent_object = self
- return parent_object.select_single(EventDetails,
- objectName='eventDetails')
+ return parent_object.wait_select_single(EventDetails,
+ objectName='eventDetails')
def get_month_view(self, parent_object=None):
if parent_object is None:
parent_object = self
- return parent_object.select_single(MonthView,
- objectName='monthViewPage')
+ return parent_object.wait_select_single(MonthView,
+ objectName='monthViewPage')
def get_year_view(self, parent_object=None):
if parent_object is None:
parent_object = self
- return parent_object.select_single(YearView, objectName='yearViewPage')
+ return parent_object.wait_select_single(YearView,
+ objectName='yearViewPage')
def get_day_view(self, parent_object=None):
if parent_object is None:
parent_object = self
- return parent_object.select_single(DayView, objectName='dayViewPage')
+ return parent_object.wait_select_single(DayView,
+ objectName='dayViewPage')
def get_week_view(self, parent_object=None):
if parent_object is None:
parent_object = self
- return parent_object.select_single(WeekView, objectName='weekViewPage')
+ return parent_object.wait_select_single(WeekView,
+ objectName='weekViewPage')
def get_agenda_view(self, parent_object=None):
if parent_object is None:
parent_object = self
- return parent_object.select_single(AgendaView, objectName='AgendaView')
+ return parent_object.wait_select_single(AgendaView,
+ objectName='AgendaView')
def get_label_with_text(self, text, root=None):
if root is None:
Follow ups