def test_mobile_poi_changed_name(browser, mobile): SEARCH: str = 'Gherkin' search_screen = MainScreen(mobile) search_screen.search_click() search = SearchScreen(mobile) search.search(SEARCH) poidetail = PoidetailScreen(mobile) poidetail.scroll_right() poidetail.scroll_left() #poidetail.trip() poidetail.save() save_page = SaveScreen(mobile) save_page.rename("New name") save_page.save() poidetail = PoidetailScreen(mobile) poidetail.close() main_screen = MainScreen(mobile) main_screen.menu_click() menu = MenuScreen(mobile) menu.places_and_routes() elem = functions.check_web_item(browser) assert elem.text == 'New name' # #delete poi functions.delete_poi(mobile)
def test_mobile_planning5(browser, mobile): main_screen = MainScreen(mobile) main_screen.menu_click() menu = MenuScreen(mobile) menu.route_planning() planning = RouteScreen(mobile) planning.bike() planning.start("Prague") planning.end("Genoa") for i in range(100000000): pass planning = RouteScreen(mobile) planning.save() save_page = SaveScreen(mobile) save_page.rename("Bike route") save_page.save() poidetail = PoidetailScreen(mobile) poidetail.close1() main_screen = MainScreen(mobile) main_screen.menu_click() menu = MenuScreen(mobile) menu.places_and_routes() elem = functions.check_web_item(browser) assert elem.text == "Bike route" # #delete poi functions.delete_poi(mobile)
def test_mobile_coor_changed_name_rename(browser, mobile): search_screen = MainScreen(mobile) search_screen.coor() #search_screen.zoom_in() #earch_screen.zoom_out() poidetail = PoidetailScreen(mobile) poidetail.save() save_page = SaveScreen(mobile) save_page.rename("New name coor") save_page.save() poidetail = PoidetailScreen(mobile) poidetail.close1() main_screen = MainScreen(mobile) main_screen.menu_click() menu = MenuScreen(mobile) menu.places_and_routes() elem = functions.check_web_item(browser) assert elem.text == "New name coor" # #delete poi functions.delete_poi(mobile)
def test_mobile_planning4(browser, mobile): main_screen = MainScreen(mobile) main_screen.menu_click() menu = MenuScreen(mobile) menu.route_planning() planning = RouteScreen(mobile) planning.start("Prague") planning.end("Genoa") for i in range(200000000): pass planning.options() options = OptionsScreen(mobile) options.auto_avoid() options.auto_short() mobile.back() for i in range(100000000): pass planning = RouteScreen(mobile) planning.save() save_page = SaveScreen(mobile) save_page.rename("Route avoid pay short") save_page.save() poidetail = PoidetailScreen(mobile) poidetail.close1() main_screen = MainScreen(mobile) main_screen.menu_click() menu = MenuScreen(mobile) menu.places_and_routes() elem = functions.check_web_item(browser) assert elem.text == "Route avoid pay short" # #delete poi functions.delete_poi(mobile)