def test_guest_cant_see_product_in_cart_opened_from_main_page(self, browser): link = "http://selenium1py.pythonanywhere.com" cart_page = CartPage(browser, link) cart_page.open() cart_page.go_to_cart() cart_page.cart_should_be_empty() cart_page.text_should_indicate_that_cart_empty()
def test_guest_cant_see_product_in_cart_opened_from_product_page( self, browser): link = "http://selenium1py.pythonanywhere.com/ru/catalogue/coders-at-work_207/?promo=newYear2019" cart_page = CartPage(browser, link) cart_page.open() cart_page.go_to_cart() cart_page.cart_should_be_empty() cart_page.text_should_indicate_that_cart_empty()
def test_guest_cant_see_product_in_cart_opened_from_product_page(browser): link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/the-city-and-the-stars_95/" page = CartPage(browser, link) page.open() page.go_to_cart() page.empty_cart_check()
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_cart() page.empty_cart_check()
def test_guest_cant_see_product_in_cart_opened_from_main_page(browser): page = CartPage(browser, BasePageLocators.MAIN_PAGE_URL) page.open() page.go_to_cart() page.should_not_be_item_in_the_cart() page.cart_message()