示例#1
0
 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()
示例#2
0
 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()
示例#3
0
def test_guest_should_see_login_link_on_product_page(browser, link):
    page = ObjectPageClass(browser, link)
    page.open()
    page.should_be_login_link()
示例#4
0
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()
示例#5
0
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()