def test_guest_cant_see_product_in_basket_opened_from_product_page( self, browser, link): page = ProductPage(browser, link) page.open() page.go_to_basket() basket = BasketPage(browser, browser.current_url) basket.should_basket_be_empty() basket.should_basket_be_empty_text()
def test_user_can_add_product_to_basket(self, browser, link): page = ProductPage(browser, link) page.open() page.add_product_to_basket()
def test_user_cant_see_success_message(self, browser, link): page = ProductPage(browser, link) page.open() page.should_not_be_success_message()
def test_guest_can_go_to_login_page_from_product_page(self, browser, link): page = ProductPage(browser, link) page.open() page.go_to_login_page()
def test_guest_should_see_login_link_on_product_page(self, browser, link): page = ProductPage(browser, link) page.open() page.should_be_login_link()
def test_message_disappeared_after_adding_product_to_basket( self, browser, link): page = ProductPage(browser, link) page.open() page.add_product_to_basket() page.should_success_message_disappeared()
def test_guest_cant_see_success_message_after_adding_product_to_basket( self, browser, link): page = ProductPage(browser, link) page.open() page.add_product_to_basket() page.should_not_be_success_message()