def test_calendar_flick(self): """https://bugzilla.mozilla.org/show_bug.cgi?id=937085""" calendar = Calendar(self.marionette) calendar.launch() calendar.flick_to_next_month() self.take_screenshot() calendar.flick_to_previous_month() self.take_screenshot() calendar.flick_to_previous_month() self.take_screenshot() calendar.tap_week_display_button() time.sleep(3) # auto-scrolls when week view is entered, wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'down', 300, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'up', 300, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'right', 100, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() calendar.tap_day_display_button() time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'down', 300, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'up', 300, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'right', 100, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._day_view_locator) GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot()
def test_calendar_flick_through_months(self): """https://bugzilla.mozilla.org/show_bug.cgi?id=937085""" MONTH_YEAR_PATTERN = '%b %Y' calendar = Calendar(self.marionette) calendar.launch() calendar.flick_to_next_month() self.assertEquals(self.next_month_year.strftime(MONTH_YEAR_PATTERN), calendar.current_month_year) calendar.flick_to_previous_month() self.assertEquals(self.today.strftime(MONTH_YEAR_PATTERN), calendar.current_month_year)
def test_calendar_flick_through_months(self): # https://bugzilla.mozilla.org/show_bug.cgi?id=937085 MONTH_YEAR_PATTERN = '%B %Y' calendar = Calendar(self.marionette) calendar.launch() calendar.flick_to_next_month() self.assertEquals(self.next_month_year.strftime(MONTH_YEAR_PATTERN), calendar.current_month_year) calendar.flick_to_previous_month() self.assertEquals(self.today.strftime(MONTH_YEAR_PATTERN), calendar.current_month_year)
def test_calendar_flick(self): """https://bugzilla.mozilla.org/show_bug.cgi?id=937085""" calendar = Calendar(self.marionette) calendar.launch() calendar.flick_to_next_month() self.take_screenshot() calendar.flick_to_previous_month() self.take_screenshot() calendar.flick_to_previous_month() self.take_screenshot() calendar.tap_week_display_button() self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'down', 300, locator=calendar._week_view_locator) self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'up', 300, locator=calendar._week_view_locator) self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'right', 100, locator=calendar._week_view_locator) self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._week_view_locator) self.take_screenshot() calendar.tap_day_display_button() self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'down', 300, locator=calendar._day_view_locator) self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'up', 300, locator=calendar._day_view_locator) self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'right', 100, locator=calendar._day_view_locator) self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._day_view_locator) GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._day_view_locator) self.take_screenshot()
def test_calendar_flick(self): """https://bugzilla.mozilla.org/show_bug.cgi?id=937085""" calendar = Calendar(self.marionette) calendar.launch() calendar.flick_to_next_month() self.take_screenshot() calendar.flick_to_previous_month() self.take_screenshot() calendar.flick_to_previous_month() self.take_screenshot() calendar.tap_week_display_button() time.sleep( 3 ) # auto-scrolls when week view is entered, wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'down', 300, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'up', 300, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'right', 100, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._week_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() calendar.tap_day_display_button() time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'down', 300, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'up', 300, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'right', 100, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot() GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._day_view_locator) GaiaImageCompareTestCase.scroll(self.marionette, 'left', 100, locator=calendar._day_view_locator) time.sleep(1) # wait until scroll bar disappears self.take_screenshot()