本文整理汇总了Python中gaiatest.apps.ftu.app.Ftu.tap_tour_next方法的典型用法代码示例。如果您正苦于以下问题:Python Ftu.tap_tour_next方法的具体用法?Python Ftu.tap_tour_next怎么用?Python Ftu.tap_tour_next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.ftu.app.Ftu
的用法示例。
在下文中一共展示了Ftu.tap_tour_next方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestFtu
# 需要导入模块: from gaiatest.apps.ftu.app import Ftu [as 别名]
# 或者: from gaiatest.apps.ftu.app.Ftu import tap_tour_next [as 别名]
class TestFtu(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.ftu = Ftu(self.marionette)
self.ftu.launch()
def test_ftu_with_tour(self):
# Go through the FTU setup as quickly as possible to get to the Tour section
self.ftu.run_ftu_setup_with_default_values()
# Take the tour
self.ftu.tap_take_tour()
# Walk through the tour
self.assertEqual(self.ftu.step1_header_text, "Swipe up and down to browse your apps and bookmarks. Tap and hold an icon to delete, move, or edit it.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step2_header_text, "Swipe down to access recent notifications, credit information and settings.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step3_header_text, "Drag from the left edge of your screen to return to recently used apps.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step4_header_text, "Tap on the search box anytime to start a search or go to a website.")
# Try going back a step
self.ftu.tap_back()
self.assertEqual(self.ftu.step3_header_text, "Drag from the left edge of your screen to return to recently used apps.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step4_header_text, "Tap on the search box anytime to start a search or go to a website.")
self.ftu.tap_tour_next()
self.ftu.wait_for_finish_tutorial_section()
self.ftu.tap_lets_go_button()
# Switch back to top level now that FTU app is gone
self.wait_for_condition(lambda m: self.apps.displayed_app.name == Homescreen.name)
示例2: TestFtu
# 需要导入模块: from gaiatest.apps.ftu.app import Ftu [as 别名]
# 或者: from gaiatest.apps.ftu.app.Ftu import tap_tour_next [as 别名]
class TestFtu(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.ftu = Ftu(self.marionette)
self.ftu.launch()
def test_ftu_status_bar(self):
"""
https://moztrap.mozilla.org/manage/cases/?filter-id=6119
See also test_ftu_skip_tour.py for the other checks in this test case
"""
status_bar = System(self.marionette).status_bar
while not self.ftu.is_take_tour_button_visible:
self.marionette.switch_to_frame()
self.assertTrue(status_bar.is_displayed)
self.apps.switch_to_displayed_app()
self.ftu.tap_next()
self.ftu.tap_take_tour()
while not self.ftu.is_lets_go_button_visible:
self.marionette.switch_to_frame()
self.assertTrue(status_bar.is_displayed)
self.apps.switch_to_displayed_app()
self.ftu.tap_tour_next()
示例3: TestFtu
# 需要导入模块: from gaiatest.apps.ftu.app import Ftu [as 别名]
# 或者: from gaiatest.apps.ftu.app.Ftu import tap_tour_next [as 别名]
class TestFtu(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.ftu = Ftu(self.marionette)
self.ftu.launch()
def test_ftu_with_tour(self):
"""
https://moztrap.mozilla.org/manage/case/6119/
"""
# Go through the FTU setup as quickly as possible to get to the Tour section
self.ftu.run_ftu_setup_with_default_values()
# Take the tour
self.ftu.tap_take_tour()
# Walk through the tour
self.assertEqual(self.ftu.step1_header_text, u"Swipe up and down to browse your apps. Tap and hold an icon to delete, move, or edit it.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step2_header_text, u"Swipe down to access recent notifications, usage information and settings.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step3_header_text, u"Drag from the left edge of your screen to return to recently used apps.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step4_header_text, u"Tap on the search box anytime to start a search or go to a website.")
# Try going back a step
self.ftu.tap_back()
self.assertEqual(self.ftu.step5_header_text, u"Drag from the left edge of your screen to return to recently used apps.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step6_header_text, u"Tap on the search box anytime to start a search or go to a website.")
self.ftu.tap_tour_next()
self.ftu.wait_for_finish_tutorial_section()
self.ftu.tap_lets_go_button()
# Switch back to top level now that FTU app is gone
Homescreen(self.marionette).wait_to_be_displayed()
示例4: TestFtu
# 需要导入模块: from gaiatest.apps.ftu.app import Ftu [as 别名]
# 或者: from gaiatest.apps.ftu.app.Ftu import tap_tour_next [as 别名]
class TestFtu(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.ftu = Ftu(self.marionette)
self.ftu.launch()
def test_ftu_with_tour(self):
# Go through the FTU setup as quickly as possible to get to the Tour section
self.ftu.run_ftu_setup_with_default_values()
# Take the tour
self.ftu.tap_take_tour()
# Walk through the tour
self.assertEqual(self.ftu.step1_header_text, "Swipe from right to left to browse your apps.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step2_header_text, "Tap and hold on an icon to delete or move it.")
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step3_header_text, "Enter any keyword or topic and your phone will instantly adapt.")
self.ftu.tap_tour_next()
self.assertEqual(
self.ftu.step4_header_text, "Swipe down to access recent notifications, credit information and settings."
)
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step5_header_text, "Tap and hold the home button to browse and close recent apps.")
# Try going back a step
self.ftu.tap_back()
self.assertEqual(
self.ftu.step4_header_text, "Swipe down to access recent notifications, credit information and settings."
)
self.ftu.tap_tour_next()
self.assertEqual(self.ftu.step5_header_text, "Tap and hold the home button to browse and close recent apps.")
self.ftu.tap_tour_next()
self.ftu.wait_for_finish_tutorial_section()
self.ftu.tap_lets_go_button()
# Switch back to top level now that FTU app is gone
self.wait_for_condition(lambda m: self.apps.displayed_app.name == "Homescreen")