def test_list_orders(self): user = data.get_user("registered_user") homepage = HomePage(self.driver) homepage.navigate() sleep(3) homepage.navigate_to_login() login_page = LoginPage(self.driver) login_page.wait_to_load() login_page.logIn(user["cpf"], user["password"]) orders_page = OrdersPage(self.driver) orders_page.wait_to_load()
def test_status_delivered(self): user = data.get_user("registered_user") homepage = HomePage(self.driver) homepage.navigate() sleep(3) homepage.navigate_to_login() login_page = LoginPage(self.driver) login_page.wait_to_load() login_page.logIn(user["cpf"], user["password"]) orders_page = OrdersPage(self.driver) orders_page.wait_to_load() orders_page.find_delivered() order_details_page = OrderDetailsPage(self.driver) order_details_page.check_delivered()