def test_guest_cant_see_product_in_cart_opened_from_main_page( browser, link="http://selenium1py.pythonanywhere.com"): page = CartPage(browser, link) page.open() page.go_to_card_page() page.should_not_be_disappeared_product() page.should_be_success_message()
def test_guest_cant_see_product_in_cart_opened_from_product_page( browser, link="http://selenium1py.pythonanywhere.com/catalogue/hacking-exposed-wireless_208/" ): page = CartPage(browser, link) page.open() page.go_to_card_page() page.should_not_be_disappeared_product() page.should_be_success_message()