def test_user_can_add_product_to_basket(self, browser, link): page = ObjectPageClass(browser, link) page.open() page.add_to_basket() page.check_was_added()
def test_user_cant_see_success_message(self, browser, link): page = ObjectPageClass(browser, link) page.open() page.guest_cant_see_success_message_after_adding_product_to_basket()
def test_guest_should_see_login_link_on_product_page(browser, link): page = ObjectPageClass(browser, link) page.open() page.should_be_login_link()
def test_guest_can_go_to_login_page_from_product_page(browser, link): page = ObjectPageClass(browser, link) page.open() page.go_to_login_page() new_page = LoginPageClass(browser, browser.current_url) new_page.should_be_login_page()
def test_message_disappeared_after_adding_product_to_basket(browser, link): page = ObjectPageClass(browser, link) page.open() page.add_to_basket() page.message_disappeared_after_adding_product_to_basket()