Login - change required username characters (#1487)

* #1480 Change required username characters

* Fix unit test error
This commit is contained in:
Maurizio Vitale
2017-01-17 13:38:51 +00:00
committed by Mario Romano
parent 399b716d82
commit 10a76cc0f6
3 changed files with 4 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ describe('AlfrescoLogin', () => {
expect(element.querySelector('#username-error').innerText).toEqual('LOGIN.MESSAGES.USERNAME-MIN');
});
it('should render validation min-length error when the username is lower than 4 characters', () => {
usernameInput.value = '123';
it('should render validation min-length error when the username is lower than 2 characters', () => {
usernameInput.value = '1';
usernameInput.dispatchEvent(new Event('input'));
fixture.detectChanges();