def test_guest_cant_see_product_in_cart_opened_from_product_page(browser): link = "http://selenium1py.pythonanywhere.com/catalogue/the-city-and-the-stars_95/" page = ProductPage(browser, link) page.open() page.go_to_cart_page() cart_page = CartPage(browser, browser.current_url) cart_page.cart_is_empty() cart_page.cart_is_empty_text_exists()
def test_guest_cant_see_product_in_cart_opened_from_main_page(browser): link = "http://selenium1py.pythonanywhere.com" page = MainPage(browser, link) page.open() page.go_to_cart_page() cart_page = CartPage(browser, browser.current_url) cart_page.cart_is_empty() cart_page.cart_is_empty_text_exists()