def test_guest_can_add_product_to_cart(browser):
    page = ProductPage(browser, link)
    page.open()
    page.add_to_backet()
    page.solve_quiz_and_get_code()
    page.should_be_message_about_adding()
    page.should_be_message_basket_total()
Example #2
0
def test_guest_can_add_product_to_cart(browser):
    link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/hacking-exposed-wireless_208/"
    cart = ProductPage(browser, link)
    cart.open()
    cart.add_to_backet()
    cart.correct_price()
    cart.correct_item()
Example #3
0
 def test_user_can_add_product_to_cart(self, browser):
     link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207"
     cart = ProductPage(browser, link)
     cart.open()
     cart.add_to_backet()
     cart.correct_price()
     cart.correct_item()
def test_message_dissapeared_after_adding_product_to_cart(browser):
    page = ProductPage(browser, link)
    page.open()
    page.add_to_backet()
    page.should_be_disappeared_success_message()
def test_guest_cant_see_success_message_after_adding_product_to_cart(browser):
    page = ProductPage(browser, link)
    page.open()
    page.add_to_backet()
    page.should_not_be_success_message()
Example #6
0
def test_message_disappeared_after_adding_product_to_cart(browser):
    link = "http://selenium1py.pythonanywhere.com/en-gb/catalogue/hacking-exposed-wireless_208/"
    cart = ProductPage(browser, link)
    cart.open()
    cart.add_to_backet()
    cart.should_be_disappeared_success_message()
Example #7
0
def test_guest_cant_see_success_message_after_adding_product_to_cart(browser):
    link = 'http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207'
    cart = ProductPage(browser, link)
    cart.open()
    cart.add_to_backet()
    cart.should_not_be_success_message()