def test_contact_page(browser): page = ContactPage(browser, link) page.open() page.contact_link() page.go_tu_contact_page() page.social_link() time.sleep(5)
def test_guest_contact_page(self, browser): link = "https://htmlpreview.github.io/?https://raw.githubusercontent.com/Irina622/portfolio/master/contact.html" page = ContactPage(browser=browser, url=link) page.open() page.should_be_contact_page() page.should_be_base_links_on_page() page.should_be_order_form_on_contact_page() time.sleep(2)