Пример #1
0
 def test_registration_with_insecure_password(self, mozwebqa):
     home_page = AffiliatesHomePage(mozwebqa)
     home_page.set_display_name("John Doe")
     home_page.set_email_address("*****@*****.**")
     home_page.set_password("invalidwithoutnumber")
     home_page.check_agreement_checkbox()
     home_page.click_register_button()
     Assert.true(home_page.is_insecure_password_warning_present)
Пример #2
0
 def test_registration_with_invalid_email_address(self, mozwebqa):
     home_page = AffiliatesHomePage(mozwebqa)
     home_page.set_display_name("John Doe")
     home_page.set_email_address("thisisinvalid")
     home_page.set_password("validpassword1")
     home_page.check_agreement_checkbox()
     home_page.click_register_button()
     Assert.true(home_page.is_valid_email_address_required)