@Test( groups = {"P1", "P1_Target", "Smoke_Target", "PasswordChange"}, dependsOnMethods = { "verifyValidationOnChangingPasswordWithRequireBothLettersAndNumbersSetToYes" }) public void verifyValidationOnChangePasswordOfNewEmployeeTest() { employeeActions.addEmployee(employee); systemPropertiesActions.requireBothLettersAndNumbersToYes(); actions.logout(); actions.initializeSession( employee.getUserName().get(), SetupStaticData.PASSWORD, LoginData.STORE.value()); // Validate that system displays error message when current password is not provided. passwordActions.changePasswordWithoutProvidingCurrentPassword( "", SetupStaticData.UPDATED_PASSWORD); passwordActions.changePasswordWithoutProvidingNewPassword( SetupStaticData.PASSWORD, "", SetupStaticData.UPDATED_PASSWORD); passwordActions.changePasswordWithoutProvidingConfirmNewPasswordTest( SetupStaticData.PASSWORD, SetupStaticData.UPDATED_PASSWORD, ""); passwordActions.changePasswordWithIncorrectCurrentPassword( SetupStaticData.PASSWORD_SECOND, SetupStaticData.UPDATED_PASSWORD); }