Beispiel #1
0
        public void IncorrectCurrentPasswordChange()
        {
            LoginPage logPage   = new LoginPage(this.driver);
            var       userLogin = AccessExcelData.GetTestDataLoging("LoginForeinUserData");

            logPage.NavigateTo();
            logPage.FillLoginForm(userLogin);

            ManageAccount manage = new ManageAccount(this.driver);
            var           user   = AccessExcelData.GetTestDataManage("ChangePasswordIncorrectCurrentPassword");

            manage.NavigateTo();

            manage.FillChangePassworForm(user);
            manage.AssertErrorMessageForEmptyEmailField("Incorrect password.");
        }
Beispiel #2
0
        public void EmptyFieldNewPasswordChange()
        {
            LoginPage logPage   = new LoginPage(this.driver);
            var       userLogin = AccessExcelData.GetTestDataLoging("LoginForeinUserData");

            logPage.NavigateTo();
            logPage.FillLoginForm(userLogin);

            ManageAccount manage = new ManageAccount(this.driver);
            var           user   = AccessExcelData.GetTestDataManage("ChangePasswordEmptryNewPassword");

            manage.NavigateTo();

            manage.FillChangePassworForm(user);
            manage.AssertErrorMessageForEmptyEmailField("The New password field is required.");
        }
Beispiel #3
0
        public void PasswordMismatchChange()
        {
            LoginPage logPage   = new LoginPage(this.driver);
            var       userLogin = AccessExcelData.GetTestDataLoging("LoginForeinUserData");

            logPage.NavigateTo();
            logPage.FillLoginForm(userLogin);

            ManageAccount manage = new ManageAccount(this.driver);
            var           user   = AccessExcelData.GetTestDataManage("ChangePasswordMismatchNewPasswordAndConfirmPassword");

            manage.NavigateTo();

            manage.FillChangePassworForm(user);
            manage.AssertErrorMessageForEmptyEmailField("The new password and confirmation password do not match.");
        }