Exemple #1
0
 def test_login_missing_password(self, driver):
     sign_in = Home(driver).sign_in()
     sign_in.write_email("*****@*****.**")
     sign_in.click_sign_in()
     error_str = sign_in.read_error_alert()
     assert error_str == "Password is required.", " Expected: 'Password is required.' missing password error.   Actual: {0}".format(
         error_str)
Exemple #2
0
    def test_login_invalid_email(self, driver):

        sign_in = Home(driver).sign_in()
        sign_in.write_email("invalid-emailgmail.com")
        sign_in.click_sign_in()
        error_str = sign_in.read_error_alert()
        assert error_str == "Invalid email address.", " Expected: 'Invalid email address.' invalid email error.   Actual: {0}".format(
            error_str)
Exemple #3
0
    def test_login_wrong_password(self, driver, user):
        if user is None:
            TestBase.skip_test(
                " login_wrong_password -  User email and Password not provided as command line argument.  Please provide user email and password and try again"
            )

        sign_in = Home(driver).sign_in()
        sign_in.write_email(user["email"])
        sign_in.write_password("wrong password")
        sign_in.click_sign_in()
        error_str = sign_in.read_error_alert()
        assert error_str == "Authentication failed.", " Expected: 'authentication failed.' wrong password error.   Actual: {0}".format(
            error_str)