mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3855]Added 'Should not accept less than one character name for Library na… (#4240)
* Added 'Should not accept less than one character name for Library name' test case. * Fix lint errors
This commit is contained in:
committed by
Eugenio Romano
parent
b18731381a
commit
c9b58849be
@@ -202,6 +202,16 @@ describe('Create library directive', function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('[C291985] Should not accept less than one character name for Library name', () => {
|
||||||
|
let name = 'x';
|
||||||
|
let libraryId = 'My New Library';
|
||||||
|
|
||||||
|
createLibraryDialog.typeLibraryName(name);
|
||||||
|
createLibraryDialog.typeLibraryId(libraryId);
|
||||||
|
expect(createLibraryDialog.isErrorMessageDisplayed()).toBe(true, 'Error message is not displayed');
|
||||||
|
expect(createLibraryDialog.getErrorMessage()).toMatch('Title must be at least 2 characters long');
|
||||||
|
});
|
||||||
|
|
||||||
it('[C291793] Should display error for Name field filled in with spaces only', () => {
|
it('[C291793] Should display error for Name field filled in with spaces only', () => {
|
||||||
let name = ' ';
|
let name = ' ';
|
||||||
let libraryId = Util.generateRandomString();
|
let libraryId = Util.generateRandomString();
|
||||||
|
Reference in New Issue
Block a user