From c9b58849be8805b1e41a52f4ac197a3a53a418be Mon Sep 17 00:00:00 2001 From: cristinaj Date: Sun, 3 Feb 2019 01:57:39 +0200 Subject: [PATCH] =?UTF-8?q?[ADF-3855]Added=20=20'Should=20not=20accept=20l?= =?UTF-8?q?ess=20than=20one=20character=20name=20for=20Library=20na?= =?UTF-8?q?=E2=80=A6=20(#4240)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added 'Should not accept less than one character name for Library name' test case. * Fix lint errors --- .../directives/create-library-directive.e2e.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/e2e/content-services/directives/create-library-directive.e2e.ts b/e2e/content-services/directives/create-library-directive.e2e.ts index b76d15be5e..58b60a1fb1 100644 --- a/e2e/content-services/directives/create-library-directive.e2e.ts +++ b/e2e/content-services/directives/create-library-directive.e2e.ts @@ -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', () => { let name = ' '; let libraryId = Util.generateRandomString();