* Fixed #6703 - fixes password confirmation * Removed debugging * Fixed tests * I guess we use 10 as the settings for password min in tests * One more try to fix tests - confirmation won’t validate until password validates
This commit is contained in:
@@ -39,11 +39,10 @@ class UsersCest
|
||||
$I->fillField('first_name', 't2');
|
||||
$I->fillField('last_name', 't2');
|
||||
$I->fillField('username', 'a');
|
||||
$I->fillField('password', '12345'); // Must be 6 chars
|
||||
$I->fillField('password', '12345');
|
||||
$I->click('Save');
|
||||
$I->seeElement('.alert-danger');
|
||||
$I->see('The password must be at least 10 characters', '.alert-msg');
|
||||
$I->see('The password confirm field is required when password is present', '.alert-msg');
|
||||
|
||||
}
|
||||
public function passesCorrectValidation(FunctionalTester $I)
|
||||
@@ -54,7 +53,7 @@ class UsersCest
|
||||
'last_name' => $user->last_name,
|
||||
'username' => $user->username,
|
||||
'password' => $user->password,
|
||||
'password_confirm' => $user->password,
|
||||
'password_confirmation' => $user->password,
|
||||
'email' => $user->email,
|
||||
'company_id' => $user->company_id,
|
||||
'locale' => $user->locale,
|
||||
|
||||
Reference in New Issue
Block a user