def tap_done(self): self.wait_for_element_displayed(*self._done_locator) self.marionette.find_element(*self._done_locator).tap() clock = Clock(self.marionette) clock.wait_for_banner_displayed() return clock
def tap_done(self): self.wait_for_element_displayed(*self._done_locator) self.marionette.find_element(*self._done_locator).tap() view = self.marionette.find_element(*self._alarm_view_locator) self.wait_for_condition( lambda m: view.location['x'] == view.size['width']) return Clock(self.marionette)
def setUp(self): GaiaTestCase.setUp(self) self.clock = Clock(self.marionette) self.clock.launch() self.data_layer.set_setting('time.clock.automatic-update.enabled', False)
def setUp(self): GaiaTestCase.setUp(self) self.clock = Clock(self.marionette) self.clock.launch() # delete any existing alarms self.data_layer.delete_all_alarms()
def setUp(self): GaiaTestCase.setUp(self) self.cards_view = CardsView(self.marionette) self.clock = Clock(self.marionette) self.clock.launch() self.gallery = Gallery(self.marionette) self.gallery.launch(empty=True)
def tap_done(self): done = Wait(self.marionette).until( expected.element_present(*self._done_locator)) Wait(self.marionette).until(expected.element_displayed(done)) done.tap() view = self.marionette.find_element(*self._alarm_view_locator) Wait(self.marionette).until( lambda m: view.location['x'] == view.size['width']) return Clock(self.marionette)
def setUp(self): PasscodeTestCase.setUp(self) self.set_passcode_to_1337() self.data_layer.set_setting('lockscreen.passcode-lock.enabled', True) self.clock = Clock(self.marionette) self.clock.launch()
def setUp(self): GaiaTestCase.setUp(self) self.clock = Clock(self.marionette) self.clock.launch() # create a new alarm with the default values that are available new_alarm = self.clock.tap_new_alarm() self.clock = new_alarm.tap_done() self.clock.wait_for_banner_not_visible()
def setUp(self): GaiaTestCase.setUp(self) self.calendar = Calendar(self.marionette) self.calendar.launch() self.clock = Clock(self.marionette) self.clock.launch() # Switch to top level frame before starting the test self.marionette.switch_to_frame()
def setUp(self): GaiaEnduranceTestCase.setUp(self) # Launch the Clock app self.clock = Clock(self.marionette) self.clock.launch() # Bug 864945, UI is not updating unless restart the app self.app_under_test = "clock" self.close_app() time.sleep(2) self.clock.launch() self.initial_alarms_count = len(self.clock.alarms)
def setUp(self): GaiaTestCase.setUp(self) # Set the time on the device _seconds_since_epoch = self.marionette.execute_script(""" var today = new Date(); var yr = today.getFullYear(); var mth = today.getMonth(); var day = today.getDate(); return new Date(yr, mth, day, 1, 0, 0).getTime();""") self.data_layer.set_time(_seconds_since_epoch) self.clock = Clock(self.marionette) self.clock.launch()
def setUp(self): GaiaTestCase.setUp(self) self.clock = Clock(self.marionette) self.clock.launch()
def tap_delete(self): # TODO: Switch to el.tap() when bug #875478 gets fixed self.marionette.tap(self.marionette.find_element(*self._alarm_delete_button_locator)) return Clock(self.marionette)
def tap_delete(self): self.marionette.find_element(*self._alarm_delete_button_locator).tap() return Clock(self.marionette)