diff --git a/e2e/content-services/comments/comment-component.e2e.ts b/e2e/content-services/comments/comment-component.e2e.ts index d8d933a1c6..914c8f415e 100644 --- a/e2e/content-services/comments/comment-component.e2e.ts +++ b/e2e/content-services/comments/comment-component.e2e.ts @@ -61,8 +61,7 @@ describe('Comment Component', () => { beforeAll(async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -81,14 +80,12 @@ describe('Comment Component', () => { await navigationBarPage.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); - - }); + }); afterEach(async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await uploadActions.deleteFileOrFolder(nodeId); - - }); + }); it('[C276947] Should be able to add a comment on ACS and view on ADF', async () => { await this.alfrescoJsApi.core.commentsApi.addComment(nodeId, { content: comments.test }); @@ -105,8 +102,7 @@ describe('Comment Component', () => { await expect(await commentsPage.getMessage(0)).toEqual(comments.test); await expect(await commentsPage.getUserName(0)).toEqual(userFullName); await expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/); - - }); + }); it('[C276948] Should be able to add a comment on a file', async () => { await viewerPage.viewFile(pngFileModel.name); diff --git a/e2e/content-services/directives/create-folder-directive.e2e.ts b/e2e/content-services/directives/create-folder-directive.e2e.ts index 24aa0ed6ab..ee708e341f 100644 --- a/e2e/content-services/directives/create-folder-directive.e2e.ts +++ b/e2e/content-services/directives/create-folder-directive.e2e.ts @@ -47,8 +47,7 @@ describe('Create folder directive', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -56,13 +55,11 @@ describe('Create folder directive', () => { beforeEach(async () => { await browser.actions().sendKeys(Key.ESCAPE).perform(); - - }); + }); afterEach(async () => { await browser.actions().sendKeys(Key.ESCAPE).perform(); - - }); + }); it('[C260154] Should not create the folder if cancel button is clicked', async () => { const folderName = 'cancelFolder'; diff --git a/e2e/content-services/directives/create-library-directive.e2e.ts b/e2e/content-services/directives/create-library-directive.e2e.ts index bfdd441fb3..015cc8fc15 100644 --- a/e2e/content-services/directives/create-library-directive.e2e.ts +++ b/e2e/content-services/directives/create-library-directive.e2e.ts @@ -58,8 +58,7 @@ describe('Create library directive', () => { title: StringUtil.generateRandomString(20).toLowerCase(), visibility: 'PUBLIC' }); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -68,8 +67,7 @@ describe('Create library directive', () => { beforeEach(async () => { await contentServicesPage.goToDocumentList(); await contentServicesPage.openCreateLibraryDialog(); - - }); + }); afterEach(async () => { await BrowserActions.closeMenuAndDialogs(); diff --git a/e2e/content-services/directives/download-directive.e2e.ts b/e2e/content-services/directives/download-directive.e2e.ts index 288454a644..aff5a25831 100644 --- a/e2e/content-services/directives/download-directive.e2e.ts +++ b/e2e/content-services/directives/download-directive.e2e.ts @@ -83,8 +83,7 @@ describe('Version component actions', () => { await navigationBarPage.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -134,5 +133,4 @@ describe('Version component actions', () => { await contentServicesPage.clickDownloadButton(); await FileBrowserUtil.isFileDownloaded(txtFileComma.name); }); - }); diff --git a/e2e/content-services/directives/edit-folder-directive.e2e.ts b/e2e/content-services/directives/edit-folder-directive.e2e.ts index 1ec3f764dc..240181f5c7 100644 --- a/e2e/content-services/directives/edit-folder-directive.e2e.ts +++ b/e2e/content-services/directives/edit-folder-directive.e2e.ts @@ -72,8 +72,7 @@ describe('Edit folder directive', () => { }); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -81,8 +80,7 @@ describe('Edit folder directive', () => { await uploadActions.deleteFileOrFolder(editFolder.entry.id); await uploadActions.deleteFileOrFolder(anotherFolder.entry.id); await uploadActions.deleteFileOrFolder(filePdfNode.entry.id); - - }); + }); beforeEach(async () => { await navigationBarPage.clickHomeButton(); @@ -178,8 +176,7 @@ describe('Edit folder directive', () => { await editFolderDialog.checkCreateUpdateBtnIsEnabled(); await editFolderDialog.clickOnCancelButton(); await editFolderDialog.checkFolderDialogIsNotDisplayed(); - - }); + }); it('[C260166] Enable/Disable edit folder icon - when file selected', async () => { await expect(await contentServicesPage.getDocumentList().dataTablePage().getNumberOfSelectedRows()).toBe(0); @@ -188,8 +185,7 @@ describe('Edit folder directive', () => { await contentServicesPage.getDocumentList().dataTablePage().selectRow('Display name', filePdfNode.entry.name); await contentServicesPage.getDocumentList().dataTablePage().checkRowIsSelected('Display name', filePdfNode.entry.name); await expect(await contentServicesPage.isEditFolderButtonEnabled()).toBe(false); - - }); + }); it('[C260166] Enable/Disable edit folder icon - when multiple folders selected', async () => { await contentServicesPage.clickMultiSelectToggle(); @@ -241,7 +237,5 @@ describe('Edit folder directive', () => { await contentServicesPage.getDocumentList().dataTablePage().checkRowIsSelected('Display name', subFolder.entry.name); await expect(await contentServicesPage.isEditFolderButtonEnabled()).toBe(false); }); - - }); - + }); }); diff --git a/e2e/content-services/directives/favorite-directive.e2e.ts b/e2e/content-services/directives/favorite-directive.e2e.ts index e8cc79d0db..8d537dc3d9 100644 --- a/e2e/content-services/directives/favorite-directive.e2e.ts +++ b/e2e/content-services/directives/favorite-directive.e2e.ts @@ -62,8 +62,7 @@ describe('Favorite directive', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -72,14 +71,12 @@ describe('Favorite directive', () => { await uploadActions.deleteFileOrFolder(testFolder2.entry.id); await uploadActions.deleteFileOrFolder(testFolder3.entry.id); await uploadActions.deleteFileOrFolder(testFolder4.entry.id); - - }); + }); beforeEach(async () => { await navigationBarPage.clickContentServicesButton(); await contentServicesPage.getDocumentList().dataTablePage().waitTillContentLoaded(); - - }); + }); it('[C260247] Should be able to mark a file as favorite', async () => { await contentServicesPage.getDocumentList().dataTablePage().checkContentIsDisplayed('Display name', testFile.entry.name); @@ -216,6 +213,5 @@ describe('Favorite directive', () => { await contentServicesPage.getDocumentList().dataTablePage().checkRowIsSelected('Display name', testFolder3.entry.name); await expect(await contentServicesPage.getDocumentList().dataTablePage().getNumberOfSelectedRows()).toBe(1); await contentServicesPage.checkIsMarkedFavorite(); - - }); + }); }); diff --git a/e2e/content-services/directives/restore-content-directive.e2e.ts b/e2e/content-services/directives/restore-content-directive.e2e.ts index 1c6d888207..d9af17cf4c 100644 --- a/e2e/content-services/directives/restore-content-directive.e2e.ts +++ b/e2e/content-services/directives/restore-content-directive.e2e.ts @@ -325,5 +325,4 @@ describe('Restore content directive', () => { await contentServicesPage.checkContentIsDisplayed(pngFile.entry.name); }); }); - }); diff --git a/e2e/content-services/document-list/document-list-actions.e2e.ts b/e2e/content-services/document-list/document-list-actions.e2e.ts index b4ff9af84e..5906bfec89 100644 --- a/e2e/content-services/document-list/document-list-actions.e2e.ts +++ b/e2e/content-services/document-list/document-list-actions.e2e.ts @@ -381,6 +381,5 @@ describe('Document List Component - Actions', () => { await contentServicesPage.checkContentIsDisplayed('A' + folderModel1.name); }); - - }); + }); }); diff --git a/e2e/content-services/document-list/document-list-component.e2e.ts b/e2e/content-services/document-list/document-list-component.e2e.ts index 560418c41e..9b706be750 100644 --- a/e2e/content-services/document-list/document-list-component.e2e.ts +++ b/e2e/content-services/document-list/document-list-component.e2e.ts @@ -245,8 +245,7 @@ describe('Document List Component', () => { await contentServicesPage.doubleClickRow(folderName); await contentServicesPage.checkEmptyFolderTextToBe('This folder is empty'); await contentServicesPage.checkEmptyFolderImageUrlToContain('/assets/images/empty_doc_lib.svg'); - - }); + }); it('[C272775] Should be able to upload a file in new folder', async () => { const testFile = new FileModel({ @@ -266,8 +265,7 @@ describe('Document List Component', () => { await contentServicesPage.doubleClickRow(uploadedFolder.entry.name); await contentServicesPage.uploadFile(testFile.location); await contentServicesPage.checkContentIsDisplayed(testFile.name); - - }); + }); it('[C261997] Should be able to clean Recent Files history', async () => { acsUser = new AcsUserModel(); @@ -281,8 +279,7 @@ describe('Document List Component', () => { await contentServicesPage.expandRecentFiles(); await contentServicesPage.checkEmptyRecentFileIsDisplayed(); await contentServicesPage.closeRecentFiles(); - - }); + }); it('[C279970] Should display Islocked field for folders', async () => { acsUser = new AcsUserModel(); @@ -299,8 +296,7 @@ describe('Document List Component', () => { await contentServicesPage.checkContentIsDisplayed(folderNameB); await contentServicesPage.checkLockIsDisplayedForElement(folderNameA); await contentServicesPage.checkLockIsDisplayedForElement(folderNameB); - - }); + }); it('[C269086] Should display Islocked field for files', async () => { const testFileA = new FileModel({ @@ -323,8 +319,7 @@ describe('Document List Component', () => { await contentServicesPage.checkContentIsDisplayed(testFileB.name); await contentServicesPage.checkLockIsDisplayedForElement(testFileA.name); await contentServicesPage.checkLockIsDisplayedForElement(testFileB.name); - - }); + }); describe('Once uploaded 20 folders', () => { @@ -357,8 +352,7 @@ describe('Document List Component', () => { await contentServicesPage.checkListIsSortedByNameColumn('asc'); }); - - }); + }); describe('Column Template', () => { diff --git a/e2e/content-services/document-list/document-list-copy-move-actions.e2e.ts b/e2e/content-services/document-list/document-list-copy-move-actions.e2e.ts index 0abbec9b64..1f2354bbad 100644 --- a/e2e/content-services/document-list/document-list-copy-move-actions.e2e.ts +++ b/e2e/content-services/document-list/document-list-copy-move-actions.e2e.ts @@ -90,8 +90,7 @@ describe('Document List Component', () => { }); await browser.driver.sleep(12000); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -101,8 +100,7 @@ describe('Document List Component', () => { await uploadActions.deleteFileOrFolder(uploadedFile.entry.id); await uploadActions.deleteFileOrFolder(sourceFolder.entry.id); await uploadActions.deleteFileOrFolder(destinationFolder.entry.id); - - }); + }); describe('Document List Component - Actions Move and Copy', () => { @@ -177,8 +175,7 @@ describe('Document List Component', () => { await contentNodeSelector.clickMoveCopyButton(); await notificationHistoryPage.checkNotifyContains('This name is already in use, try a different name.'); }); - - }); + }); describe('Document List actionns - Move, Copy on no permission folder', () => { @@ -213,7 +210,5 @@ describe('Document List Component', () => { await contentNodeSelector.contentListPage().dataTablePage().waitTillContentLoaded(); await contentNodeSelector.contentListPage().dataTablePage().checkRowContentIsDisplayed(subFolder2.entry.name); }); - - }); - + }); }); diff --git a/e2e/content-services/document-list/document-list-gallery.e2e.ts b/e2e/content-services/document-list/document-list-gallery.e2e.ts index b48e70b9dc..bbca15d57c 100644 --- a/e2e/content-services/document-list/document-list-gallery.e2e.ts +++ b/e2e/content-services/document-list/document-list-gallery.e2e.ts @@ -184,7 +184,5 @@ describe('Document List Component', () => { await contentServicesPage.selectGridSortingFromDropdown(cardProperties.CREATED); await contentServicesPage.checkListIsSortedByCreatedColumn('asc'); }); - - }); - + }); }); diff --git a/e2e/content-services/document-list/document-list-pagination.e2e.ts b/e2e/content-services/document-list/document-list-pagination.e2e.ts index 993d69236c..c41704d5ec 100644 --- a/e2e/content-services/document-list/document-list-pagination.e2e.ts +++ b/e2e/content-services/document-list/document-list-pagination.e2e.ts @@ -81,8 +81,7 @@ describe('Document List - Pagination', () => { await uploadActions.createEmptyFiles(secondSetOfFiles, folderThreeUploadedModel.entry.id); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -92,8 +91,7 @@ describe('Document List - Pagination', () => { await contentServicesPage.goToDocumentList(); await contentServicesPage.checkAcsContainer(); await contentServicesPage.waitForTableBody(); - - }); + }); it('[C260062] Should use default pagination settings', async () => { await contentServicesPage.doubleClickRow(newFolderModel.name); diff --git a/e2e/content-services/document-list/document-list-permissions.e2e.ts b/e2e/content-services/document-list/document-list-permissions.e2e.ts index ddcff9008e..80669f374d 100644 --- a/e2e/content-services/document-list/document-list-permissions.e2e.ts +++ b/e2e/content-services/document-list/document-list-permissions.e2e.ts @@ -85,7 +85,5 @@ describe('Document List Component', () => { await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/files/' + privateSite.entry.guid); await expect(await errorPage.getErrorDescription()).toBe('Accesso alla risorsa sul server non consentito.'); }); - - }); - + }); }); diff --git a/e2e/content-services/document-list/document-list-thumbnails-tooltips.e2e.ts b/e2e/content-services/document-list/document-list-thumbnails-tooltips.e2e.ts index a92c1a62ce..f3f8f2b518 100644 --- a/e2e/content-services/document-list/document-list-thumbnails-tooltips.e2e.ts +++ b/e2e/content-services/document-list/document-list-thumbnails-tooltips.e2e.ts @@ -155,5 +155,4 @@ describe('Document List Component', () => { }); }); - }); diff --git a/e2e/content-services/lock-file.e2e.ts b/e2e/content-services/lock-file.e2e.ts index 564c03ff61..3879ff877d 100644 --- a/e2e/content-services/lock-file.e2e.ts +++ b/e2e/content-services/lock-file.e2e.ts @@ -165,8 +165,7 @@ describe('Lock File', () => { await contentServices.checkUnlockedIcon(pngFileModel.name); }); - - }); + }); describe('Locked file without owner permissions', () => { @@ -252,8 +251,7 @@ describe('Lock File', () => { await expect(error.status).toEqual(409); } }); - - }); + }); describe('Locked file with owner permissions', () => { @@ -351,6 +349,5 @@ describe('Lock File', () => { await contentServices.deleteContent(pngFileToBeLocked.entry.name); await contentServices.checkContentIsNotDisplayed(pngFileToBeLocked.entry.name); }); - - }); + }); }); diff --git a/e2e/content-services/metadata/aspect-oriented-config.e2e.ts b/e2e/content-services/metadata/aspect-oriented-config.e2e.ts index cbed96c0cd..794f8f5e5a 100644 --- a/e2e/content-services/metadata/aspect-oriented-config.e2e.ts +++ b/e2e/content-services/metadata/aspect-oriented-config.e2e.ts @@ -77,8 +77,7 @@ describe('Aspect oriented config', () => { aspects.entry.aspectNames.push(defaultModel.concat(':', defaultEmptyPropertiesAspect)); await this.alfrescoJsApi.core.nodesApi.updateNode(uploadedFile.entry.id, { aspectNames: aspects.entry.aspectNames }); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -87,8 +86,7 @@ describe('Aspect oriented config', () => { afterEach(async () => { await viewerPage.clickCloseButton(); await contentServicesPage.checkAcsContainer(); - - }); + }); it('[C261117] Should be possible restrict the display properties of one an aspect', async () => { @@ -240,8 +238,7 @@ describe('Aspect oriented config', () => { await expect(await metadataViewPage.getMetadataGroupTitle('GROUP-TITLE1-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION ONE'); await expect(await metadataViewPage.getMetadataGroupTitle('GROUP-TITLE2-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION TWO'); - - }); + }); it('[C279968] Should be possible use a custom preset', async () => { diff --git a/e2e/content-services/metadata/metadata-permissions.e2e.ts b/e2e/content-services/metadata/metadata-permissions.e2e.ts index 0d28d15bee..528c35bcfc 100644 --- a/e2e/content-services/metadata/metadata-permissions.e2e.ts +++ b/e2e/content-services/metadata/metadata-permissions.e2e.ts @@ -88,8 +88,7 @@ describe('permissions', () => { }); await uploadActions.uploadFile(pngFileModel.location, pngFileModel.name, site.entry.guid); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); diff --git a/e2e/content-services/metadata/metadata-properties.e2e.ts b/e2e/content-services/metadata/metadata-properties.e2e.ts index f81cb7051c..0a96c2280f 100644 --- a/e2e/content-services/metadata/metadata-properties.e2e.ts +++ b/e2e/content-services/metadata/metadata-properties.e2e.ts @@ -74,8 +74,7 @@ describe('CardView Component - properties', () => { await navigationBarPage.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); - - }); + }); afterEach(async () => { await viewerPage.clickCloseButton(); @@ -142,8 +141,7 @@ describe('CardView Component - properties', () => { await metadataViewPage.checkMetadataGroupIsExpand('EXIF'); await metadataViewPage.checkMetadataGroupIsExpand('properties'); - - }); + }); it('[C280559] Should show/hide the default metadata properties when displayDefaultProperties is true/false', async () => { await viewerPage.viewFile(pngFileModel.name); diff --git a/e2e/content-services/metadata/metadata-smoke-tests.e2e.ts b/e2e/content-services/metadata/metadata-smoke-tests.e2e.ts index 9f17d84d65..5eb4451582 100644 --- a/e2e/content-services/metadata/metadata-smoke-tests.e2e.ts +++ b/e2e/content-services/metadata/metadata-smoke-tests.e2e.ts @@ -69,8 +69,7 @@ describe('Metadata component', () => { const pngUploadedFile = await uploadActions.uploadFile(pngFileModel.location, pngFileModel.name, '-my-'); Object.assign(pngFileModel, pngUploadedFile.entry); pngFileModel.update(pngUploadedFile.entry); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -237,8 +236,7 @@ describe('Metadata component', () => { await metadataViewPage.clickUpdatePropertyIcon('properties.exif:fNumber'); await expect(await metadataViewPage.getPropertyText('properties.exif:fNumber')).toEqual('22'); }); - - }); + }); describe('Folder metadata', () => { @@ -279,8 +277,7 @@ describe('Metadata component', () => { await metadataViewPage.clickUpdatePropertyIcon('name'); await expect(await metadataViewPage.getPropertyText('name')).toEqual(folderName); }); - - }); + }); it('[C279960] Should show the last username modifier when modify a File', async () => { await loginPage.loginToContentServices(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); @@ -316,5 +313,4 @@ describe('Metadata component', () => { await viewerPage.clickCloseButton(); await contentServicesPage.waitForTableBody(); }); - }); diff --git a/e2e/content-services/permissions/permissions-component.e2e.ts b/e2e/content-services/permissions/permissions-component.e2e.ts index bf095a316d..5652e99e6e 100644 --- a/e2e/content-services/permissions/permissions-component.e2e.ts +++ b/e2e/content-services/permissions/permissions-component.e2e.ts @@ -158,8 +158,7 @@ describe('Permissions Component', () => { await uploadActions.uploadFile(fileModel.location, 'RoleCoordinator' + fileModel.name, roleCoordinatorFolder.entry.id); await uploadActions.uploadFile(fileModel.location, 'RoleCollaborator' + fileModel.name, roleCollaboratorFolder.entry.id); await uploadActions.uploadFile(fileModel.location, 'RoleEditor' + fileModel.name, roleEditorFolder.entry.id); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -238,8 +237,7 @@ describe('Permissions Component', () => { await permissionsPage.checkResultListIsDisplayed(); await permissionsPage.checkUserOrGroupIsDisplayed('EVERYONE'); }); - - }); + }); describe('Changing and duplicate Permissions', () => { @@ -304,8 +302,7 @@ describe('Permissions Component', () => { await permissionsPage.clickDeletePermissionButton(); await permissionsPage.checkUserOrGroupIsDeleted(filePermissionUser.getId()); }); - - }); + }); describe('Role: Consumer, Contributor, Coordinator, Collaborator, Editor, No Permissions', () => { @@ -438,7 +435,5 @@ describe('Permissions Component', () => { await permissionsPage.clickAddPermissionButton(); await notificationHistoryPage.checkNotifyContains('You are not allowed to change permissions'); }); - - }); - + }); }); diff --git a/e2e/content-services/permissions/site-permissions.e2e.ts b/e2e/content-services/permissions/site-permissions.e2e.ts index 262ce6743c..e8296c5cae 100644 --- a/e2e/content-services/permissions/site-permissions.e2e.ts +++ b/e2e/content-services/permissions/site-permissions.e2e.ts @@ -141,8 +141,7 @@ describe('Permissions Component', () => { }); await uploadActions.uploadFile(fileModel.location, 'Site' + fileModel.name, siteFolder.entry.id); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -150,8 +149,7 @@ describe('Permissions Component', () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.core.sitesApi.deleteSite(publicSite.entry.id); await this.alfrescoJsApi.core.sitesApi.deleteSite(privateSite.entry.id); - - }); + }); describe('Role Site Dropdown', () => { @@ -195,8 +193,7 @@ describe('Permissions Component', () => { await expect(await BrowserActions.getText(roleDropdownOptions.get(2))).toBe(CONSTANTS.CS_USER_ROLES.CONTRIBUTOR); await expect(await BrowserActions.getText(roleDropdownOptions.get(3))).toBe(CONSTANTS.CS_USER_ROLES.MANAGER); }); - - }); + }); describe('Roles: SiteConsumer, SiteCollaborator, SiteContributor, SiteManager', () => { @@ -344,7 +341,5 @@ describe('Permissions Component', () => { await contentServicesPage.deleteContent('Site' + fileModel.name); await contentServicesPage.checkContentIsNotDisplayed('Site' + fileModel.name); }); - - }); - + }); }); diff --git a/e2e/content-services/share-file/unshare-file.e2e.ts b/e2e/content-services/share-file/unshare-file.e2e.ts index 2bab3d1ea8..0834231b8b 100644 --- a/e2e/content-services/share-file/unshare-file.e2e.ts +++ b/e2e/content-services/share-file/unshare-file.e2e.ts @@ -106,8 +106,7 @@ describe('Unshare file', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await navBar.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -115,8 +114,7 @@ describe('Unshare file', () => { afterEach(async () => { await browser.refresh(); - - }); + }); describe('with permission', () => { afterAll(async () => { diff --git a/e2e/content-services/social/social.component.e2e.ts b/e2e/content-services/social/social.component.e2e.ts index 1599c9581c..ec9c06ddd1 100644 --- a/e2e/content-services/social/social.component.e2e.ts +++ b/e2e/content-services/social/social.component.e2e.ts @@ -79,14 +79,12 @@ describe('Social component', () => { }] } }); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); await uploadActions.deleteFileOrFolder(emptyFile.entry.id); - - }); + }); describe('User interaction on their own components', () => { @@ -111,8 +109,7 @@ describe('Social component', () => { await likePage.removeHoverFromLikeButton(); await expect(await likePage.getUnLikedIconColor()).toBe(greyLikeColor); }); - - }); + }); describe('User interaction on components that belong to other users', () => { @@ -148,8 +145,7 @@ describe('Social component', () => { await expect(await ratePage.getRatingCounter()).toBe('0'); await expect(await ratePage.isNotStarRated(4)); }); - - }); + }); describe('Multiple Users interaction', () => { diff --git a/e2e/content-services/tag-component.e2e.ts b/e2e/content-services/tag-component.e2e.ts index bea20a5d50..fd7e0d3c69 100644 --- a/e2e/content-services/tag-component.e2e.ts +++ b/e2e/content-services/tag-component.e2e.ts @@ -176,5 +176,4 @@ describe('Tag component', () => { await tagPage.checkTagListByNodeIdIsOrderedAscending(); await tagPage.checkTagListContentServicesIsOrderedAscending(); }); - }); diff --git a/e2e/content-services/trashcan-pagination.e2e.ts b/e2e/content-services/trashcan-pagination.e2e.ts index 821c91b58f..c166a2f4f9 100644 --- a/e2e/content-services/trashcan-pagination.e2e.ts +++ b/e2e/content-services/trashcan-pagination.e2e.ts @@ -75,14 +75,12 @@ describe('Trashcan - Pagination', () => { afterAll(async () => { await navigationBarPage.clickLogoutButton(); - - }); + }); afterEach(async () => { await browser.refresh(); await trashcanPage.waitForTableBody(); - - }); + }); it('[C272811] Should be able to set Items per page to 20', async () => { await paginationPage.selectItemsPerPage(itemsPerPage.twenty); diff --git a/e2e/content-services/tree-view-component.e2e.ts b/e2e/content-services/tree-view-component.e2e.ts index d4e574a249..eb5ada2743 100644 --- a/e2e/content-services/tree-view-component.e2e.ts +++ b/e2e/content-services/tree-view-component.e2e.ts @@ -139,5 +139,4 @@ describe('Tree View Component', () => { await expect(await treeViewPage.getTotalNodes()).toEqual(1); }); - }); diff --git a/e2e/content-services/upload/cancel-upload.e2e.ts b/e2e/content-services/upload/cancel-upload.e2e.ts index 429925c541..78fbc1c640 100644 --- a/e2e/content-services/upload/cancel-upload.e2e.ts +++ b/e2e/content-services/upload/cancel-upload.e2e.ts @@ -56,7 +56,7 @@ describe('Upload component', async () => { }); it('[C272792] Should be possible to cancel upload of a big file using row cancel icon', async () => { - await browser.executeScript('setTimeout(() => {document.querySelector("div[data-automation-id=\'cancel-upload-progress\']").click();}, 1500)'); + await browser.executeScript('setTimeout(() => {document.querySelector("div[data-automation-id=\'cancel-upload-progress\']").click();}, 2500)'); await contentServicesPage.uploadFile(largeFile.location); @@ -68,7 +68,7 @@ describe('Upload component', async () => { it('[C287790] Should be possible to cancel upload of a big file through the cancel uploads button', async () => { await browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' + - 'document.querySelector("#adf-upload-dialog-cancel").click(); }, 1500)'); + 'document.querySelector("#adf-upload-dialog-cancel").click(); }, 2500)'); await contentServicesPage.uploadFile(largeFile.location); await expect(await uploadDialog.getTitleText()).toEqual('Upload canceled'); await uploadDialog.clickOnCloseButton(); @@ -79,7 +79,7 @@ describe('Upload component', async () => { it('[C272793] Should be able to cancel multiple files upload', async () => { await uploadToggles.enableMultipleFileUpload(); await browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' + - 'document.querySelector("#adf-upload-dialog-cancel").click(); }, 1500)'); + 'document.querySelector("#adf-upload-dialog-cancel").click(); }, 4000)'); await contentServicesPage.uploadMultipleFile([pngFileModel.location, largeFile.location]); await expect(await uploadDialog.getTitleText()).toEqual('Upload canceled'); @@ -92,7 +92,7 @@ describe('Upload component', async () => { it('[C315257] Should be able to cancel file in upload queue', async () => { await uploadToggles.enableMultipleFileUpload(); - await browser.executeScript('setTimeout(() => {document.querySelector("button[data-automation-id=\'cancel-upload-queue\']").click();}, 1500)'); + await browser.executeScript('setTimeout(() => {document.querySelector("button[data-automation-id=\'cancel-upload-queue\']").click();}, 2500)'); await contentServicesPage.uploadMultipleFile([largeFile.location, pngFileModel.location]); await uploadDialog.fileIsCancelled(pngFileModel.name); await uploadDialog.clickOnCloseButton(); diff --git a/e2e/content-services/upload/excluded-file.e2e.ts b/e2e/content-services/upload/excluded-file.e2e.ts index e0ef76c73f..88256780f0 100644 --- a/e2e/content-services/upload/excluded-file.e2e.ts +++ b/e2e/content-services/upload/excluded-file.e2e.ts @@ -65,18 +65,15 @@ describe('Upload component - Excluded Files', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); - - }); + }); afterEach(async () => { await contentServicesPage.goToDocumentList(); - - }); + }); it('[C279914] Should not allow upload default excluded files using D&D', async () => { await contentServicesPage.checkDragAndDropDIsDisplayed(); diff --git a/e2e/content-services/upload/upload-dialog.e2e.ts b/e2e/content-services/upload/upload-dialog.e2e.ts index f0b5309d21..c752de28ea 100644 --- a/e2e/content-services/upload/upload-dialog.e2e.ts +++ b/e2e/content-services/upload/upload-dialog.e2e.ts @@ -71,8 +71,7 @@ describe('Upload component', () => { await contentServicesPage.goToDocumentList(); const pdfUploadedFile = await uploadActions.uploadFile(firstPdfFileModel.location, firstPdfFileModel.name, '-my-'); Object.assign(firstPdfFileModel, pdfUploadedFile.entry); - - }); + }); beforeEach(async () => { await contentServicesPage.goToDocumentList(); diff --git a/e2e/content-services/upload/upload-dialog.ts b/e2e/content-services/upload/upload-dialog.ts deleted file mode 100644 index 9ceed7b125..0000000000 --- a/e2e/content-services/upload/upload-dialog.ts +++ /dev/null @@ -1,191 +0,0 @@ -/*! - * @license - * Copyright 2019 Alfresco Software, Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BrowserActions, LoginPage, UploadActions } from '@alfresco/adf-testing'; -import { ContentServicesPage } from '../../pages/adf/content-services.page'; -import { UploadDialogPage } from '../../pages/adf/dialog/upload-dialog.page'; -import { UploadTogglesPage } from '../../pages/adf/dialog/upload-toggles.page'; -import { AcsUserModel } from '../../models/ACS/acs-user.model'; -import { FileModel } from '../../models/ACS/file.model'; -import { browser } from 'protractor'; -import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api'; -import { VersionManagePage } from '../../pages/adf/version-manager.page'; -import { NavigationBarPage } from '../../pages/adf/navigation-bar.page'; - -describe('Upload component', () => { - - const contentServicesPage = new ContentServicesPage(); - const uploadDialog = new UploadDialogPage(); - const uploadToggles = new UploadTogglesPage(); - const loginPage = new LoginPage(); - const acsUser = new AcsUserModel(); - const versionManagePage = new VersionManagePage(); - const navigationBarPage = new NavigationBarPage(); - - this.alfrescoJsApi = new AlfrescoApi({ - provider: 'ECM', - hostEcm: browser.params.testConfig.adf_acs.host - }); - const uploadActions = new UploadActions(this.alfrescoJsApi); - - const firstPdfFileModel = new FileModel({ - 'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF_B.file_name, - 'location': browser.params.resources.Files.ADF_DOCUMENTS.PDF_B.file_location - }); - const docxFileModel = new FileModel({ - 'name': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_name, - 'location': browser.params.resources.Files.ADF_DOCUMENTS.DOCX.file_location - }); - const pdfFileModel = new FileModel({ - 'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name, - 'location': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_location - }); - const pngFileModelTwo = new FileModel({ - 'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_name, - 'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_location - }); - const pngFileModel = new FileModel({ - 'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name, - 'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location - }); - const filesLocation = [pdfFileModel.location, docxFileModel.location, pngFileModel.location, firstPdfFileModel.location]; - const filesName = [pdfFileModel.name, docxFileModel.name, pngFileModel.name, firstPdfFileModel.name]; - - beforeAll(async () => { - await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); - await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); - await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - await loginPage.loginToContentServicesUsingUserModel(acsUser); - await contentServicesPage.goToDocumentList(); - const pdfUploadedFile = await uploadActions.uploadFile(firstPdfFileModel.location, firstPdfFileModel.name, '-my-'); - Object.assign(firstPdfFileModel, pdfUploadedFile.entry); - }); - - afterAll(async () => { - await navigationBarPage.clickLogoutButton(); - }); - - beforeEach(async () => { - await contentServicesPage.goToDocumentList(); - }); - - afterEach(async () => { - const nbResults = await contentServicesPage.numberOfResultsDisplayed(); - if (nbResults > 1) { - const nodesPromise = await contentServicesPage.getElementsDisplayedId(); - - nodesPromise.forEach(async (currentNodePromise) => { - const nodeId = await currentNodePromise; - await uploadActions.deleteFileOrFolder(nodeId); - }); - } - }); - - it('[C260143] Should be possible to maximize/minimize the upload dialog', async () => { - await contentServicesPage.uploadFile(docxFileModel.location); - - await contentServicesPage.checkContentIsDisplayed(docxFileModel.name); - - await uploadDialog.fileIsUploaded(docxFileModel.name); - await uploadDialog.checkCloseButtonIsDisplayed(); - await expect(uploadDialog.numberOfCurrentFilesUploaded()).toEqual('1'); - await expect(uploadDialog.numberOfInitialFilesUploaded()).toEqual('1'); - await uploadDialog.minimizeUploadDialog(); - await uploadDialog.dialogIsMinimized(); - await expect(uploadDialog.numberOfCurrentFilesUploaded()).toEqual('1'); - await expect(uploadDialog.numberOfInitialFilesUploaded()).toEqual('1'); - await uploadDialog.maximizeUploadDialog(); - await uploadDialog.dialogIsDisplayed(); - await uploadDialog.fileIsUploaded(docxFileModel.name); - await expect(uploadDialog.numberOfCurrentFilesUploaded()).toEqual('1'); - await expect(uploadDialog.numberOfInitialFilesUploaded()).toEqual('1'); - await uploadDialog.checkCloseButtonIsDisplayed(); - await uploadDialog.clickOnCloseButton(); - await uploadDialog.dialogIsNotDisplayed(); - }); - - it('[C291902] Should be shown upload counter display in dialog box', async () => { - await contentServicesPage - .uploadFile(docxFileModel.location); - await contentServicesPage.checkContentIsDisplayed(docxFileModel.name); - - await uploadDialog.fileIsUploaded(docxFileModel.name); - await uploadDialog.checkCloseButtonIsDisplayed(); - await expect(uploadDialog.getTitleText()).toEqual('Uploaded 1 / 1'); - await uploadDialog.checkCloseButtonIsDisplayed(); - await uploadDialog.clickOnCloseButton(); - await uploadDialog.dialogIsNotDisplayed(); - }); - - it('[C260168] Should be possible to cancel upload using dialog icon', async () => { - await contentServicesPage.uploadFile(pdfFileModel.location); - await contentServicesPage.checkContentIsDisplayed(pdfFileModel.name); - await uploadDialog.removeUploadedFile(pdfFileModel.name); - await uploadDialog.fileIsCancelled(pdfFileModel.name); - await expect(uploadDialog.getTitleText()).toEqual('Upload canceled'); - await uploadDialog.clickOnCloseButton(); - await uploadDialog.dialogIsNotDisplayed(); - await contentServicesPage.checkContentIsNotDisplayed(pdfFileModel.name); - }); - - it('[C260176] Should remove files from upload dialog box when closed', async () => { - await contentServicesPage.uploadFile(pngFileModelTwo.location); - await contentServicesPage.checkContentIsDisplayed(pngFileModelTwo.name); - - await uploadDialog.fileIsUploaded(pngFileModelTwo.name); - await contentServicesPage.uploadFile(pngFileModel.location); - await contentServicesPage.checkContentIsDisplayed(pngFileModel.name); - await uploadDialog.fileIsUploaded(pngFileModel.name); - await uploadDialog.fileIsUploaded(pngFileModelTwo.name); - await uploadDialog.clickOnCloseButton(); - await uploadDialog.dialogIsNotDisplayed(); - await contentServicesPage.uploadFile(pdfFileModel.location); - await contentServicesPage.checkContentIsDisplayed(pdfFileModel.name); - await uploadDialog.fileIsUploaded(pdfFileModel.name); - await uploadDialog.fileIsNotDisplayedInDialog(pngFileModel.name); - await uploadDialog.fileIsNotDisplayedInDialog(pngFileModelTwo.name); - await uploadDialog.clickOnCloseButton(); - await uploadDialog.dialogIsNotDisplayed(); - }); - - it('[C260170] Should be possible to upload multiple files', async () => { - await contentServicesPage.checkAcsContainer(); - await uploadToggles.enableMultipleFileUpload(); - await contentServicesPage.uploadMultipleFile(filesLocation); - await contentServicesPage.checkContentsAreDisplayed(filesName); - await uploadDialog.filesAreUploaded(filesName); - await expect(uploadDialog.getTitleText()).toEqual('Uploaded 4 / 4'); - await uploadDialog.clickOnCloseButton(); - await uploadDialog.dialogIsNotDisplayed(); - await uploadToggles.disableMultipleFileUpload(); - }); - - it('[C311305] Should NOT be able to remove uploaded version', async () => { - await contentServicesPage.uploadFile(docxFileModel.location); - await uploadDialog.fileIsUploaded(docxFileModel.name); - await contentServicesPage.checkContentIsDisplayed(docxFileModel.name); - - await contentServicesPage.versionManagerContent(docxFileModel.name); - await BrowserActions.click(versionManagePage.showNewVersionButton); - await versionManagePage.uploadNewVersionFile( - pngFileModel.location - ); - await versionManagePage.closeVersionDialog(); - await uploadDialog.removeUploadedFile(pngFileModel.name); - await contentServicesPage.checkContentIsDisplayed(pngFileModel.name); - }); -}); diff --git a/e2e/content-services/upload/uploader-component.e2e.ts b/e2e/content-services/upload/uploader-component.e2e.ts index cc2916e3f5..b9b0ba9a8a 100644 --- a/e2e/content-services/upload/uploader-component.e2e.ts +++ b/e2e/content-services/upload/uploader-component.e2e.ts @@ -130,28 +130,6 @@ describe('Upload component', () => { await uploadDialog.dialogIsNotDisplayed(); }); - it('[C260143] Should be possible to maximize/minimize the upload dialog', async () => { - await contentServicesPage.uploadFile(docxFileModel.location); - await contentServicesPage.checkContentIsDisplayed(docxFileModel.name); - - await uploadDialog.fileIsUploaded(docxFileModel.name); - await uploadDialog.checkCloseButtonIsDisplayed(); - await expect(await uploadDialog.numberOfCurrentFilesUploaded()).toEqual('1'); - await expect(await uploadDialog.numberOfInitialFilesUploaded()).toEqual('1'); - await uploadDialog.minimizeUploadDialog(); - await uploadDialog.dialogIsMinimized(); - await expect(await uploadDialog.numberOfCurrentFilesUploaded()).toEqual('1'); - await expect(await uploadDialog.numberOfInitialFilesUploaded()).toEqual('1'); - await uploadDialog.maximizeUploadDialog(); - await uploadDialog.dialogIsDisplayed(); - await uploadDialog.fileIsUploaded(docxFileModel.name); - await expect(await uploadDialog.numberOfCurrentFilesUploaded()).toEqual('1'); - await expect(await uploadDialog.numberOfInitialFilesUploaded()).toEqual('1'); - await uploadDialog.checkCloseButtonIsDisplayed(); - await uploadDialog.clickOnCloseButton(); - await uploadDialog.dialogIsNotDisplayed(); - }); - it('[C272794] Should display tooltip for uploading files', async () => { await uploadToggles.enableMultipleFileUpload(); await uploadToggles.checkMultipleFileUploadToggleIsEnabled(); @@ -317,5 +295,4 @@ describe('Upload component', () => { await uploadDialog.displayTooltip(); await expect(await uploadDialog.getTooltip()).toEqual('Upload location no longer exists [404]'); }); - }); diff --git a/e2e/content-services/upload/user-permission.e2e.ts b/e2e/content-services/upload/user-permission.e2e.ts index 958a0cc64c..780993270e 100644 --- a/e2e/content-services/upload/user-permission.e2e.ts +++ b/e2e/content-services/upload/user-permission.e2e.ts @@ -88,8 +88,7 @@ describe('Upload - User permission', () => { id: acsUser.id, role: CONSTANTS.CS_USER_ROLES.MANAGER }); - - }); + }); describe('Consumer permissions', () => { @@ -129,8 +128,7 @@ describe('Upload - User permission', () => { await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content'); }); - - }); + }); describe('full permissions', () => { @@ -146,8 +144,7 @@ describe('Upload - User permission', () => { await uploadDialog.fileIsUploaded(emptyFile.name); }); - - }); + }); describe('multiple users', () => { @@ -184,5 +181,4 @@ describe('Upload - User permission', () => { await contentServicesPage.checkContentIsDisplayed(pdfFile.name); }); }); - }); diff --git a/e2e/content-services/version/version-actions.e2e.ts b/e2e/content-services/version/version-actions.e2e.ts index 41164ebab6..1be455965f 100644 --- a/e2e/content-services/version/version-actions.e2e.ts +++ b/e2e/content-services/version/version-actions.e2e.ts @@ -66,8 +66,7 @@ describe('Version component actions', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await navigationBarPage.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); - - }); + }); beforeEach(async () => { await contentServicesPage.versionManagerContent(txtFileModel.name); @@ -165,5 +164,4 @@ describe('Version component actions', () => { await contentServicesPage.waitForTableBody(); await contentServicesPage.checkContentIsDisplayed(txtFileModel.name); }); - }); diff --git a/e2e/content-services/version/version-permissions.e2e.ts b/e2e/content-services/version/version-permissions.e2e.ts index 180c0db02a..3b8064ad97 100644 --- a/e2e/content-services/version/version-permissions.e2e.ts +++ b/e2e/content-services/version/version-permissions.e2e.ts @@ -189,8 +189,7 @@ describe('Version component permissions', () => { await contentServices.getDocumentList().rightClickOnRow(lockFileModel.name); await expect(await contentServices.isContextActionEnabled('Manage versions')).toBe(false, 'Manage version is enabled'); }); - - }); + }); describe('Contributor', () => { const sameCreatorFile = new FileModel({ @@ -317,5 +316,4 @@ describe('Version component permissions', () => { await expect(await contentServices.isContextActionEnabled('Manage versions')).toBe(false, 'Manage versions is enabled'); }); }); - }); diff --git a/e2e/content-services/version/version-properties.e2e.ts b/e2e/content-services/version/version-properties.e2e.ts index ce715f6c14..d32fd943c9 100644 --- a/e2e/content-services/version/version-properties.e2e.ts +++ b/e2e/content-services/version/version-properties.e2e.ts @@ -67,8 +67,7 @@ describe('Version Properties', () => { await navigationBarPage.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); await contentServicesPage.versionManagerContent(txtFileModel.name); - - }); + }); it('[C272817] Should NOT be present the download action when allowDownload property is false', async () => { await versionManagePage.disableDownload(); @@ -109,5 +108,4 @@ describe('Version Properties', () => { await BrowserVisibility.waitUntilElementIsNotVisible(versionManagePage.showNewVersionButton); await BrowserVisibility.waitUntilElementIsNotVisible(versionManagePage.uploadNewVersionButton); }); - }); diff --git a/e2e/content-services/version/version-smoke-tests.e2e.ts b/e2e/content-services/version/version-smoke-tests.e2e.ts index dc56b496b9..78f2097ae7 100644 --- a/e2e/content-services/version/version-smoke-tests.e2e.ts +++ b/e2e/content-services/version/version-smoke-tests.e2e.ts @@ -82,8 +82,7 @@ describe('Version component', () => { await navigationBarPage.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); await contentServicesPage.versionManagerContent(txtFileModel.name); - - }); + }); it('[C272768] Should be visible the first file version when you upload a file', async () => { await versionManagePage.checkUploadNewVersionsButtonIsDisplayed(); @@ -156,5 +155,4 @@ describe('Version component', () => { await versionManagePage.checkFileVersionExist('2.1'); await expect(await versionManagePage.getFileVersionName('2.1')).toEqual(fileModelVersionFive.name); }); - }); diff --git a/e2e/core/auth-guard/auth-guard-sso.e2e.ts b/e2e/core/auth-guard/auth-guard-sso.e2e.ts index d127109ac1..5fe0151325 100644 --- a/e2e/core/auth-guard/auth-guard-sso.e2e.ts +++ b/e2e/core/auth-guard/auth-guard-sso.e2e.ts @@ -36,5 +36,4 @@ describe('Auth Guard SSO', () => { const error = await errorPage.getErrorCode(); await expect(error).toBe('403'); }); - }); diff --git a/e2e/core/card-view/card-view-component.e2e.ts b/e2e/core/card-view/card-view-component.e2e.ts index 1d483e10b6..c28de76e08 100644 --- a/e2e/core/card-view/card-view-component.e2e.ts +++ b/e2e/core/card-view/card-view-component.e2e.ts @@ -30,8 +30,7 @@ describe('CardView Component', () => { beforeAll(async () => { await loginPage.loginToContentServices(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await navigationBarPage.clickCardViewButton(); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -233,8 +232,7 @@ describe('CardView Component', () => { await expect(await cardViewPageComponent.getErrorFloat()).toBe('Use a number format'); }); - - }); + }); describe('Boolean', () => { @@ -283,8 +281,7 @@ describe('CardView Component', () => { await expect(cardViewPageComponent.getOutputText(1)) .toBe('[CardView Datetime Item] - null'); }); - - }); + }); it('[C306895] Should display the form field as editable and clickable depending on the \'Editable\' toggle mode.', async () => { const message = 'clickable updated'; diff --git a/e2e/core/datatable/data-table-component-selection.e2e.ts b/e2e/core/datatable/data-table-component-selection.e2e.ts index 2f45a7fd7e..b7e0b44227 100644 --- a/e2e/core/datatable/data-table-component-selection.e2e.ts +++ b/e2e/core/datatable/data-table-component-selection.e2e.ts @@ -43,8 +43,7 @@ describe('Datatable component - selection', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await navigationBarPage.navigateToDatatable(); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); diff --git a/e2e/core/datatable/data-table-component.e2e.ts b/e2e/core/datatable/data-table-component.e2e.ts index 6d6070e276..03fa900095 100644 --- a/e2e/core/datatable/data-table-component.e2e.ts +++ b/e2e/core/datatable/data-table-component.e2e.ts @@ -50,7 +50,6 @@ describe('Datatable component', () => { await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); await loginPage.loginToContentServicesUsingUserModel(acsUser); - }); afterAll(async () => { diff --git a/e2e/core/error-component.e2e.ts b/e2e/core/error-component.e2e.ts index 9bf09e3366..4c4f9603fa 100644 --- a/e2e/core/error-component.e2e.ts +++ b/e2e/core/error-component.e2e.ts @@ -37,8 +37,7 @@ describe('Error Component', () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -64,5 +63,4 @@ describe('Error Component', () => { await expect(await errorPage.getErrorTitle()).toBe('We hit a problem.'); await expect(await errorPage.getErrorDescription()).toBe('Looks like something went wrong.'); }); - }); diff --git a/e2e/core/header-component.e2e.ts b/e2e/core/header-component.e2e.ts index 7ded2368e0..0eab61ffaa 100644 --- a/e2e/core/header-component.e2e.ts +++ b/e2e/core/header-component.e2e.ts @@ -60,8 +60,7 @@ describe('Header Component', () => { await this.alfrescoJsApi.login(user.email, user.password); await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); beforeEach(async() => { await navigationBarPage.clickHeaderDataButton(); @@ -71,8 +70,7 @@ describe('Header Component', () => { await navigationBarPage.clickLogoutButton(); await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - - }); + }); it('[C280002] Should be able to view Header component', async () => { await headerPage.checkShowMenuCheckBoxIsDisplayed(); diff --git a/e2e/core/icons-component.e2e.ts b/e2e/core/icons-component.e2e.ts index d5217ced9a..9c277a6546 100644 --- a/e2e/core/icons-component.e2e.ts +++ b/e2e/core/icons-component.e2e.ts @@ -39,8 +39,7 @@ describe('Universal Icon component', () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -48,13 +47,11 @@ describe('Universal Icon component', () => { beforeEach(async () => { await navigationBarPage.clickIconsButton(); - - }); + }); it('[C291872] Should display the icons on the page', async () => { await expect(await iconsPage.isLigatureIconDisplayed('folder')).toBe(true, 'Ligature icon is not displayed'); await expect(await iconsPage.isCustomIconDisplayed('adf:move_file')).toBe(true, 'Named icon is not displayed'); await expect(await iconsPage.isCustomIconDisplayed('adf:folder')).toBe(true, 'Thumbnail service icon is not displayed'); }); - }); diff --git a/e2e/core/infinite-scrolling.e2e.ts b/e2e/core/infinite-scrolling.e2e.ts index 672a01d3e8..6c9a2301e2 100644 --- a/e2e/core/infinite-scrolling.e2e.ts +++ b/e2e/core/infinite-scrolling.e2e.ts @@ -74,8 +74,7 @@ describe('Enable infinite scrolling', () => { deleteUploaded = await uploadActions.createFolder('deleteFolder', '-my-'); await uploadActions.createEmptyFiles(deleteFileNames, deleteUploaded.entry.id); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -84,8 +83,7 @@ describe('Enable infinite scrolling', () => { beforeEach(async () => { await navigationBarPage.clickContentServicesButton(); await contentServicesPage.checkAcsContainer(); - - }); + }); it('[C260484] Should be possible to enable infinite scrolling', async () => { await contentServicesPage.doubleClickRow(folderModel.name); @@ -150,5 +148,4 @@ describe('Enable infinite scrolling', () => { await infinitePaginationPage.checkLoadMoreButtonIsNotDisplayed(); }); - }); diff --git a/e2e/core/login/login-component.e2e.ts b/e2e/core/login/login-component.e2e.ts index d2176eaaa1..06c0f5a85c 100644 --- a/e2e/core/login/login-component.e2e.ts +++ b/e2e/core/login/login-component.e2e.ts @@ -61,8 +61,7 @@ describe('Login component', () => { await this.alfrescoJsApi.core.peopleApi.addPerson(userA); await this.alfrescoJsApi.core.peopleApi.addPerson(userB); - - }); + }); it('[C276746] Should display the right information in user-info when a different users logs in', async () => { await loginPage.loginToContentServicesUsingUserModel(userA); @@ -270,5 +269,4 @@ describe('Login component', () => { await expect(await loginPage.getLoginError()).toEqual(errorMessages.invalid_credentials); await loginPage.login(adminUserModel.id, adminUserModel.password); }); - }); diff --git a/e2e/core/login/login-sso/login-sso.e2e.ts b/e2e/core/login/login-sso/login-sso.e2e.ts index 14fde00187..57f5aa1e09 100644 --- a/e2e/core/login/login-sso/login-sso.e2e.ts +++ b/e2e/core/login/login-sso/login-sso.e2e.ts @@ -54,8 +54,7 @@ describe('Login component - SSO', () => { await browser.refresh(); await loginSSOPage.loginSSOIdentityService(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); }); - - }); + }); describe('Login component - SSO Grant type password (implicit flow false)', () => { diff --git a/e2e/core/login/login-sso/logout-sso.e2e.ts b/e2e/core/login/login-sso/logout-sso.e2e.ts index 8aa9c8920b..cc8f32bdef 100644 --- a/e2e/core/login/login-sso/logout-sso.e2e.ts +++ b/e2e/core/login/login-sso/logout-sso.e2e.ts @@ -38,5 +38,4 @@ describe('Logout component - SSO', () => { const actualUrl = await browser.getCurrentUrl(); await expect(actualUrl).toEqual(browser.params.testConfig.adf.url + '/login'); }); - }); diff --git a/e2e/core/login/redirection.e2e.ts b/e2e/core/login/redirection.e2e.ts index 03db134e31..7e90990151 100644 --- a/e2e/core/login/redirection.e2e.ts +++ b/e2e/core/login/redirection.e2e.ts @@ -58,8 +58,7 @@ describe('Login component - Redirect', () => { await this.alfrescoJsApi.login(user.id, user.password); uploadedFolder = await uploadActions.createFolder('protecteFolder' + StringUtil.generateRandomString(), '-my-'); - - }); + }); it('[C213838] Should after login in CS be redirect to Login page when try to access to PS', async () => { await loginPage.goToLoginPage(); diff --git a/e2e/core/pagination-empty-current-page.e2e.ts b/e2e/core/pagination-empty-current-page.e2e.ts index 6b5a94cabc..7e03888780 100644 --- a/e2e/core/pagination-empty-current-page.e2e.ts +++ b/e2e/core/pagination-empty-current-page.e2e.ts @@ -90,8 +90,7 @@ describe('Pagination - returns to previous page when current is empty', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - - }); + }); it('[C274710] Should redirect to previous page when current is emptied', async () => { await contentServicesPage.doubleClickRow(folderModel.name); @@ -127,8 +126,7 @@ describe('Pagination - returns to previous page when current is empty', () => { list = await contentServicesPage.getAllRowsNameColumn(); await expect(Util.arrayContainsArray(list, fileNames.slice(0, 5))).toEqual(true); - - }); + }); it('[C297494] Should display content when navigating to a non-empty folder not in the first page', async () => { await contentServicesPage.goToDocumentList(); diff --git a/e2e/core/user-info-component-cloud.e2e.ts b/e2e/core/user-info-component-cloud.e2e.ts index 954dd38e52..b483311340 100644 --- a/e2e/core/user-info-component-cloud.e2e.ts +++ b/e2e/core/user-info-component-cloud.e2e.ts @@ -41,8 +41,7 @@ describe('User Info - SSO', () => { await loginSSOPage.clickOnSSOButton(); await loginSSOPage.loginSSOIdentityService(identityUser.email, identityUser.password); - - }); + }); afterAll(async () => { if (identityService) { @@ -58,5 +57,4 @@ describe('User Info - SSO', () => { await userInfoPage.closeUserProfile(); await userInfoPage.dialogIsNotDisplayed(); }); - }); diff --git a/e2e/core/user-info-component.e2e.ts b/e2e/core/user-info-component.e2e.ts index 2abe02ae55..0f3d87b80d 100644 --- a/e2e/core/user-info-component.e2e.ts +++ b/e2e/core/user-info-component.e2e.ts @@ -62,8 +62,7 @@ describe('User Info component', () => { }); await this.alfrescoJsApi.core.peopleApi.addPerson(contentUserModel); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); diff --git a/e2e/core/viewer/file-extensions/viewer-archive.component.e2e.ts b/e2e/core/viewer/file-extensions/viewer-archive.component.e2e.ts index 897c8db0f5..0d75ab7c9b 100644 --- a/e2e/core/viewer/file-extensions/viewer-archive.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-archive.component.e2e.ts @@ -56,8 +56,7 @@ describe('Viewer', () => { role: CONSTANTS.CS_USER_ROLES.MANAGER }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -90,6 +89,5 @@ describe('Viewer', () => { } } }); - - }); + }); }); diff --git a/e2e/core/viewer/file-extensions/viewer-component.e2e.ts b/e2e/core/viewer/file-extensions/viewer-component.e2e.ts index e62540d406..ddc11cb271 100644 --- a/e2e/core/viewer/file-extensions/viewer-component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-component.e2e.ts @@ -68,7 +68,6 @@ describe('Viewer', () => { await this.alfrescoJsApi.login(acsUser.id, acsUser.password); pngFileUploaded = await uploadActions.uploadFile(pngFileInfo.location, pngFileInfo.name, site.entry.guid); - }); afterAll(async () => { @@ -118,7 +117,5 @@ describe('Viewer', () => { } } }); - - }); - + }); }); diff --git a/e2e/core/viewer/file-extensions/viewer-excel.component.e2e.ts b/e2e/core/viewer/file-extensions/viewer-excel.component.e2e.ts index 9795a568cd..c8a08e7417 100644 --- a/e2e/core/viewer/file-extensions/viewer-excel.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-excel.component.e2e.ts @@ -56,8 +56,7 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - - }); + }); describe('Excel Folder Uploaded', () => { let uploadedExcels; @@ -88,7 +87,5 @@ describe('Viewer', () => { } } }); - - }); - + }); }); diff --git a/e2e/core/viewer/file-extensions/viewer-image.component.e2e.ts b/e2e/core/viewer/file-extensions/viewer-image.component.e2e.ts index 680fc06193..8c73eaaa0d 100644 --- a/e2e/core/viewer/file-extensions/viewer-image.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-image.component.e2e.ts @@ -61,8 +61,7 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - - }); + }); describe('Image Folder Uploaded', () => { @@ -106,7 +105,5 @@ describe('Viewer', () => { } } }); - - }); - + }); }); diff --git a/e2e/core/viewer/file-extensions/viewer-powerpoint.component.e2e.ts b/e2e/core/viewer/file-extensions/viewer-powerpoint.component.e2e.ts index f327c91844..7e866d3795 100644 --- a/e2e/core/viewer/file-extensions/viewer-powerpoint.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-powerpoint.component.e2e.ts @@ -57,8 +57,7 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - - }); + }); describe('PowerPoint Folder Uploaded', () => { @@ -91,7 +90,5 @@ describe('Viewer', () => { } } }); - - }); - + }); }); diff --git a/e2e/core/viewer/file-extensions/viewer-text.component.e2e.ts b/e2e/core/viewer/file-extensions/viewer-text.component.e2e.ts index 85788478ca..38093ae7e7 100644 --- a/e2e/core/viewer/file-extensions/viewer-text.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-text.component.e2e.ts @@ -56,8 +56,7 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - - }); + }); describe('Text Folder Uploaded', () => { @@ -89,6 +88,5 @@ describe('Viewer', () => { } } }); - - }); + }); }); diff --git a/e2e/core/viewer/file-extensions/viewer-word.component.e2e.ts b/e2e/core/viewer/file-extensions/viewer-word.component.e2e.ts index 8994d8157f..adc5aa4ffe 100644 --- a/e2e/core/viewer/file-extensions/viewer-word.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-word.component.e2e.ts @@ -59,8 +59,7 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); @@ -96,7 +95,5 @@ describe('Viewer', () => { } } }); - - }); - + }); }); diff --git a/e2e/core/viewer/info-drawer.component.e2e.ts b/e2e/core/viewer/info-drawer.component.e2e.ts index 61dd02edf7..4ec0bdde43 100644 --- a/e2e/core/viewer/info-drawer.component.e2e.ts +++ b/e2e/core/viewer/info-drawer.component.e2e.ts @@ -61,14 +61,12 @@ describe('Info Drawer', () => { await this.alfrescoJsApi.login(acsUser.id, acsUser.password); pngFileUploaded = await uploadActions.uploadFile(pngFileInfo.location, pngFileInfo.name, site.entry.guid); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await uploadActions.deleteFileOrFolder(pngFileUploaded.entry.id); - - }); + }); beforeEach(async() => { await loginPage.loginToContentServicesUsingUserModel(acsUser); diff --git a/e2e/core/viewer/viewer-content-services-component.e2e.ts b/e2e/core/viewer/viewer-content-services-component.e2e.ts index 251ae5e9d5..ec892e9491 100644 --- a/e2e/core/viewer/viewer-content-services-component.e2e.ts +++ b/e2e/core/viewer/viewer-content-services-component.e2e.ts @@ -106,8 +106,7 @@ describe('Content Services Viewer', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - - }); + }); afterAll(async () => { await uploadActions.deleteFileOrFolder(pdfFile.getId()); @@ -118,8 +117,7 @@ describe('Content Services Viewer', () => { await uploadActions.deleteFileOrFolder(pptFile.getId()); await uploadActions.deleteFileOrFolder(unsupportedFile.getId()); await navigationBarPage.clickLogoutButton(); - - }); + }); it('[C260038] Should display first page, toolbar and pagination when opening a .pdf file', async () => { await contentServicesPage.checkAcsContainer(); diff --git a/e2e/core/viewer/viewer-custom-toolbar-info-drawer.e2e.ts b/e2e/core/viewer/viewer-custom-toolbar-info-drawer.e2e.ts index 6643b306ec..4c75d27311 100644 --- a/e2e/core/viewer/viewer-custom-toolbar-info-drawer.e2e.ts +++ b/e2e/core/viewer/viewer-custom-toolbar-info-drawer.e2e.ts @@ -51,14 +51,12 @@ describe('Viewer', () => { txtFileUploaded = await uploadActions.uploadFile(txtFileInfo.location, txtFileInfo.name, '-my-'); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await uploadActions.deleteFileOrFolder(txtFileUploaded.entry.id); await navigationBarPage.clickLogoutButton(); - - }); + }); beforeEach(async () => { await contentServicesPage.goToDocumentList(); diff --git a/e2e/core/viewer/viewer-extension.e2e.ts b/e2e/core/viewer/viewer-extension.e2e.ts index 5f0d88cdb1..61539f638a 100644 --- a/e2e/core/viewer/viewer-extension.e2e.ts +++ b/e2e/core/viewer/viewer-extension.e2e.ts @@ -66,8 +66,7 @@ describe('Viewer', () => { jsFileUploaded = await uploadActions.uploadFile(jsFileInfo.location, jsFileInfo.name, '-my-'); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.login(acsUser.id, acsUser.password); diff --git a/e2e/core/viewer/viewer-properties.e2e.ts b/e2e/core/viewer/viewer-properties.e2e.ts index 908380350f..2a71013bc9 100644 --- a/e2e/core/viewer/viewer-properties.e2e.ts +++ b/e2e/core/viewer/viewer-properties.e2e.ts @@ -70,14 +70,12 @@ describe('Viewer - properties', () => { await viewerPage.clickLeftSidebarButton(); await viewerPage.checkLeftSideBarIsDisplayed(); - - }); + }); afterAll(async () => { await uploadActions.deleteFileOrFolder(pngFile.getId()); await navigationBarPage.clickLogoutButton(); - - }); + }); it('[C260066] Should Show/Hide viewer toolbar when showToolbar is true/false', async () => { await viewerPage.checkToolbarIsDisplayed(); diff --git a/e2e/core/viewer/viewer-share-content.ts b/e2e/core/viewer/viewer-share-content.ts index 3bf18e33fa..41ec07c583 100644 --- a/e2e/core/viewer/viewer-share-content.ts +++ b/e2e/core/viewer/viewer-share-content.ts @@ -77,8 +77,7 @@ describe('Viewer', () => { wordFileUploaded = await uploadActions.uploadFile(wordFileInfo.location, wordFileInfo.name, '-my-'); pngFileShared = await this.alfrescoJsApi.core.sharedlinksApi.addSharedLink({ 'nodeId': pngFileUploaded.entry.id }); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.login(acsUser.id, acsUser.password); diff --git a/e2e/insights/analytics-component.e2e.ts b/e2e/insights/analytics-component.e2e.ts index 00784e326e..74757a4e8d 100644 --- a/e2e/insights/analytics-component.e2e.ts +++ b/e2e/insights/analytics-component.e2e.ts @@ -52,13 +52,11 @@ describe('Analytics Smoke Test', () => { await this.alfrescoJsApi.activiti.adminUsersApi.createNewUser(procUserModel); await loginPage.loginToProcessServicesUsingUserModel(procUserModel); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - - }); + }); it('[C260346] Should be able to change title of a report', async () => { await navigationBarPage.navigateToProcessServicesPage(); diff --git a/e2e/process-services-cloud/apps-section-cloud.e2e.ts b/e2e/process-services-cloud/apps-section-cloud.e2e.ts index bf7459640d..41e74a5914 100644 --- a/e2e/process-services-cloud/apps-section-cloud.e2e.ts +++ b/e2e/process-services-cloud/apps-section-cloud.e2e.ts @@ -48,14 +48,12 @@ describe('Applications list', () => { }); await LocalStorageUtil.setConfigField('alfresco-deployed-apps', '[]'); - - }); + }); afterAll(async () => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - - }); + }); it('[C310373] Should all the app with running state be displayed on dashboard when alfresco-deployed-apps is not used in config file', async () => { await navigationBarPage.navigateToProcessServicesCloudPage(); diff --git a/e2e/process-services-cloud/edit-process-filters-component.e2e.ts b/e2e/process-services-cloud/edit-process-filters-component.e2e.ts index 12c804ebb8..126882dcc6 100644 --- a/e2e/process-services-cloud/edit-process-filters-component.e2e.ts +++ b/e2e/process-services-cloud/edit-process-filters-component.e2e.ts @@ -228,7 +228,5 @@ describe('Edit process filters cloud', () => { await expect(await processCloudDemoPage.editProcessFilterCloudComponent().editProcessFilterDialog().getFilterName()).toEqual('All Processes'); await processCloudDemoPage.editProcessFilterCloudComponent().editProcessFilterDialog().clickOnCancelButton(); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/edit-task-filters-component.e2e.ts b/e2e/process-services-cloud/edit-task-filters-component.e2e.ts index c84fd747ec..3b39ec69d2 100644 --- a/e2e/process-services-cloud/edit-task-filters-component.e2e.ts +++ b/e2e/process-services-cloud/edit-task-filters-component.e2e.ts @@ -284,7 +284,5 @@ describe('Edit task filters cloud', () => { await expect(await tasksCloudDemoPage.editTaskFilterCloudComponent().editTaskFilterDialog().getFilterName()).toEqual('My Tasks'); await tasksCloudDemoPage.editTaskFilterCloudComponent().editTaskFilterDialog().clickOnCancelButton(); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/form-field/date-widget.e2e.ts b/e2e/process-services-cloud/form-field/date-widget.e2e.ts deleted file mode 100644 index 26acee9155..0000000000 --- a/e2e/process-services-cloud/form-field/date-widget.e2e.ts +++ /dev/null @@ -1,60 +0,0 @@ -/*! - * @license - * Copyright 2019 Alfresco Software, Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { - LoginSSOPage, - BrowserActions, FormPage, ProcessCloudWidgetPage, FormCloudComponentPage -} from '@alfresco/adf-testing'; -import { browser } from 'protractor'; -import { customDateFormAPS2 } from '../../resources/forms/custom-date-form'; - -describe('Form Field Component - Dropdown Widget', () => { - const loginSSOPage = new LoginSSOPage(); - const widget = new ProcessCloudWidgetPage(); - const dateWidget = widget.dateWidget(); - - const formDemoPage = new FormCloudComponentPage(); - const formJson = JSON.parse(customDateFormAPS2); - const formPage = new FormPage(); - - beforeAll(async () => { - await loginSSOPage.loginSSOIdentityService(browser.params.testConfig.hrUser.email, browser.params.testConfig.hrUser.password); - }); - - beforeEach(async () => { - const urlFormDemoPage = `${browser.params.testConfig.adf.url}/form-cloud`; - await BrowserActions.getUrl(urlFormDemoPage); - }); - - it('[C313199] Should display the validation for min and max date values with custom date format', async () => { - await formDemoPage.setConfigToEditor(formJson); - await dateWidget.setDateInput('datefield', '18-7-19'); - await formPage.saveForm(); - await expect(await dateWidget.getErrorMessage('datefield')) - .toBe('Can\'t be less than 19-7-19', 'Min date validation is not working'); - await dateWidget.clearDateInput('datefield'); - await dateWidget.setDateInput('datefield', '20-7-19'); - await formPage.saveForm(); - await expect(await dateWidget.getErrorMessage('datefield')) - .toBe('Can\'t be greater than 19-8-19', 'Max date validation is not working'); - await dateWidget.clearDateInput('datefield'); - await dateWidget.setDateInput('datefield', '19-7-19'); - await formPage.saveForm(); - await dateWidget.checkErrorMessageIsNotDisplayed('datefield'); - }); - -}); diff --git a/e2e/process-services-cloud/form-field/dropdown-widget.e2e.ts b/e2e/process-services-cloud/form-field/dropdown-widget.e2e.ts index 5a0475cb08..cc362ec82d 100644 --- a/e2e/process-services-cloud/form-field/dropdown-widget.e2e.ts +++ b/e2e/process-services-cloud/form-field/dropdown-widget.e2e.ts @@ -83,8 +83,7 @@ describe('Form Field Component - Dropdown Widget', () => { afterAll(async () => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - - }); + }); beforeEach(async () => { await navigationBarPage.navigateToProcessServicesCloudPage(); @@ -118,5 +117,4 @@ describe('Form Field Component - Dropdown Widget', () => { await expect(await dropdown.getSelectedOptionText('Dropdown097maj')).toBe('Clementine Bauch'); await taskFormCloudComponent.checkCompleteButtonIsNotDisplayed(); }); - }); diff --git a/e2e/process-services-cloud/form-field/people-group-of-people.e2e.ts b/e2e/process-services-cloud/form-field/people-group-of-people.e2e.ts index b5032d3226..5da401abb2 100644 --- a/e2e/process-services-cloud/form-field/people-group-of-people.e2e.ts +++ b/e2e/process-services-cloud/form-field/people-group-of-people.e2e.ts @@ -185,5 +185,4 @@ describe('People and Group of people Widgets', () => { await expect(await formPage.isSaveButtonDisabled()).toBe(false); await expect(await formPage.isValidationIconBlue()).toBe(true); }); - }); diff --git a/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts b/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts index f2ba1841bf..e45af1f69d 100644 --- a/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts +++ b/e2e/process-services-cloud/form-field/task-visibility-condition.e2e.ts @@ -163,5 +163,4 @@ describe('Task cloud visibility', async () => { await taskFormCloudComponent.clickCompleteButton(); }); - }); diff --git a/e2e/process-services-cloud/form-field/visibility-condition-tabs.e2e.ts b/e2e/process-services-cloud/form-field/visibility-condition-tabs.e2e.ts index 7ffb64d473..863e4e55cf 100644 --- a/e2e/process-services-cloud/form-field/visibility-condition-tabs.e2e.ts +++ b/e2e/process-services-cloud/form-field/visibility-condition-tabs.e2e.ts @@ -205,5 +205,4 @@ describe('Visibility conditions on tabs - cloud', () => { await widget.textWidget().setValue(widgets.textThreeId, value.notDisplayTab); await widget.tab().checkTabIsDisplayedByLabel(tab.tabNextOperators); }); - }); diff --git a/e2e/process-services-cloud/form-field/visibility-condition.e2e.ts b/e2e/process-services-cloud/form-field/visibility-condition.e2e.ts index 6e771059c0..e15254eeec 100644 --- a/e2e/process-services-cloud/form-field/visibility-condition.e2e.ts +++ b/e2e/process-services-cloud/form-field/visibility-condition.e2e.ts @@ -183,8 +183,7 @@ describe('Visibility conditions - cloud', () => { await widget.checkboxWidget().clickCheckboxInput('Checkbox2'); await widget.checkboxWidget().isCheckboxHidden(checkbox.checkbox1); - - }); + }); it('[C309650] Should be able to see Checkbox widget when has multiple visibility conditions and next condition operators', async () => { let text1, text2; @@ -266,8 +265,7 @@ describe('Visibility conditions - cloud', () => { const textDisplayWidgetNoCondition = await widget.displayValueWidget().getFieldValue(displayValueString.displayValueNoConditionField); await expect(textDisplayWidgetNoCondition).toEqual('No cats'); - - }); + }); it('[C309869] Should be able to see Display text widget when visibility condition refers to a form variable and a field', async () => { await formCloudDemoPage.setConfigToEditor(displayValueTextJson); @@ -288,8 +286,7 @@ describe('Visibility conditions - cloud', () => { textOneField = await widget.textWidget().getFieldValue(widgets.textOneDisplay); await expect(textOneField).toEqual('dog'); await widget.displayValueWidget().checkDisplayValueWidgetIsHidden(displayValueString.displayValueSingleConditionField); - - }); + }); it('[C309871] Should be able to see Display text widget when has multiple visibility conditions and next condition operators', async () => { await formCloudDemoPage.setConfigToEditor(displayValueTextJson); @@ -331,6 +328,5 @@ describe('Visibility conditions - cloud', () => { await expect(textTwoField).toEqual('dog'); await widget.displayValueWidget().isDisplayValueWidgetVisible(displayValueString.displayValueMultipleConditionsField); await expect(textDisplayWidgetMultipleCondition).toEqual('more cats'); - - }); + }); }); diff --git a/e2e/process-services-cloud/people-group-cloud-component.e2e.ts b/e2e/process-services-cloud/people-group-cloud-component.e2e.ts index 3cae7d363c..f69be27eba 100644 --- a/e2e/process-services-cloud/people-group-cloud-component.e2e.ts +++ b/e2e/process-services-cloud/people-group-cloud-component.e2e.ts @@ -253,7 +253,5 @@ describe('People Groups Cloud Component', () => { await peopleCloudComponent.checkSelectedPeople('TestFirstName3 TestLastName3'); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/people-group-cloud-filter-component.e2e.ts b/e2e/process-services-cloud/people-group-cloud-filter-component.e2e.ts index cb5a975c5f..292115467d 100644 --- a/e2e/process-services-cloud/people-group-cloud-filter-component.e2e.ts +++ b/e2e/process-services-cloud/people-group-cloud-filter-component.e2e.ts @@ -138,7 +138,5 @@ describe('People Groups Cloud Component', () => { await groupCloudComponentPage.searchGroupsToExisting(groupNoRole.name); await groupCloudComponentPage.checkGroupIsNotDisplayed(groupNoRole.name); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/process-custom-filters.e2e.ts b/e2e/process-services-cloud/process-custom-filters.e2e.ts index a69c140b20..eac26b9d3d 100644 --- a/e2e/process-services-cloud/process-custom-filters.e2e.ts +++ b/e2e/process-services-cloud/process-custom-filters.e2e.ts @@ -326,7 +326,5 @@ describe('Process list cloud', () => { }); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/process-filter-results.e2e.ts b/e2e/process-services-cloud/process-filter-results.e2e.ts index 8f39374cee..1546b5476e 100644 --- a/e2e/process-services-cloud/process-filter-results.e2e.ts +++ b/e2e/process-services-cloud/process-filter-results.e2e.ts @@ -132,8 +132,7 @@ describe('Process filters cloud', () => { await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password); await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile)); await LocalStorageUtil.setConfigField('adf-cloud-process-list', JSON.stringify(processListCloudConfigFile)); - - }); + }); afterAll(async () => { await processInstancesService.deleteProcessInstance(runningProcessInstance.entry.id, candidateBaseApp); @@ -147,8 +146,7 @@ describe('Process filters cloud', () => { await identityService.deleteIdentityUser(testUser.idIdentityService); await identityService.deleteIdentityUser(anotherUser.idIdentityService); - - }); + }); beforeEach(async () => { await navigationBarPage.navigateToProcessServicesCloudPage(); diff --git a/e2e/process-services-cloud/process-filters-cloud.e2e.ts b/e2e/process-services-cloud/process-filters-cloud.e2e.ts index 3db13366e7..78adb24006 100644 --- a/e2e/process-services-cloud/process-filters-cloud.e2e.ts +++ b/e2e/process-services-cloud/process-filters-cloud.e2e.ts @@ -129,5 +129,4 @@ describe('Process filters cloud', () => { await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedById(completedProcess.entry.id); }); }); - }); diff --git a/e2e/process-services-cloud/process-header-cloud.e2e.ts b/e2e/process-services-cloud/process-header-cloud.e2e.ts index 618e41ab95..9b3c444c41 100644 --- a/e2e/process-services-cloud/process-header-cloud.e2e.ts +++ b/e2e/process-services-cloud/process-header-cloud.e2e.ts @@ -144,7 +144,5 @@ describe('Process Header cloud component', () => { await expect(await processHeaderCloudPage.getBusinessKey()).toEqual(CONSTANTS.PROCESS_DETAILS.NO_BUSINESS_KEY); await expect(await processHeaderCloudPage.getLastModified()).toEqual(completedCreatedDate); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/process-list-cloud-action-menu.e2e.ts b/e2e/process-services-cloud/process-list-cloud-action-menu.e2e.ts index 176414915e..e76decc39f 100644 --- a/e2e/process-services-cloud/process-list-cloud-action-menu.e2e.ts +++ b/e2e/process-services-cloud/process-list-cloud-action-menu.e2e.ts @@ -103,7 +103,5 @@ describe('Process list cloud', () => { await processCloudDemoPage.processListCloudComponent().clickContextMenuActionNamed('delete'); await processCloudDemoPage.checkActionExecuted(deleteProcess.entry.id, 'delete'); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/process-list-cloud-component.e2e.ts b/e2e/process-services-cloud/process-list-cloud-component.e2e.ts index 21afea89c4..a9f2bf2d45 100644 --- a/e2e/process-services-cloud/process-list-cloud-component.e2e.ts +++ b/e2e/process-services-cloud/process-list-cloud-component.e2e.ts @@ -99,7 +99,5 @@ describe('Process list cloud', () => { await processCloudDemoPage.processListCloudComponent().getDataTable().checkColumnIsDisplayed('processDefinitionKey'); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/process-list-selection-cloud.e2e.ts b/e2e/process-services-cloud/process-list-selection-cloud.e2e.ts index fb9b5e3d32..90f66e7fac 100644 --- a/e2e/process-services-cloud/process-list-selection-cloud.e2e.ts +++ b/e2e/process-services-cloud/process-list-selection-cloud.e2e.ts @@ -183,5 +183,4 @@ describe('Process list cloud', () => { await processDetailsCloudDemoPage.checkListedSelectedProcessInstance(processInstances[1]); }); }); - }); diff --git a/e2e/process-services-cloud/start-process-cloud.e2e.ts b/e2e/process-services-cloud/start-process-cloud.e2e.ts index f2d2f5406b..f4453888bb 100644 --- a/e2e/process-services-cloud/start-process-cloud.e2e.ts +++ b/e2e/process-services-cloud/start-process-cloud.e2e.ts @@ -54,14 +54,12 @@ describe('Start Process', () => { await navigationBarPage.navigateToProcessServicesCloudPage(); await appListCloudComponent.checkApsContainer(); - - }); + }); afterAll(async () => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - - }); + }); afterEach(async () => { await navigationBarPage.navigateToProcessServicesCloudPage(); @@ -111,7 +109,5 @@ describe('Start Process', () => { await processCloudDemoPage.runningProcessesFilter().clickProcessFilter(); await expect(await processCloudDemoPage.getActiveFilterName()).toBe('Running Processes'); await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedByName(processName); - - }); - + }); }); diff --git a/e2e/process-services-cloud/start-task-form-cloud.e2e.ts b/e2e/process-services-cloud/start-task-form-cloud.e2e.ts index 528ed11666..40533fb94d 100644 --- a/e2e/process-services-cloud/start-task-form-cloud.e2e.ts +++ b/e2e/process-services-cloud/start-task-form-cloud.e2e.ts @@ -235,8 +235,7 @@ describe('Start Task Form', () => { await startTask.checkFormDefinitionIsDisplayed(browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.forms.starteventform); await startTask.checkFormDefinitionIsDisplayed(browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.forms.formtotestvalidations); }); - - }); + }); describe('Start a process with a start event form', async () => { @@ -309,8 +308,7 @@ describe('Start Task Form', () => { await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedById(processId); }); - - }); + }); describe('Attach content to process-cloud task form using upload widget', async () => { @@ -544,6 +542,5 @@ describe('Start Task Form', () => { await contentFileWidget.downloadFile(testFileModel.name); await expect(await FileBrowserUtil.isFileDownloaded(testFileModel.name)).toBe(true); }); - - }); + }); }); diff --git a/e2e/process-services-cloud/start-task/start-task-custom-app-cloud.e2e.ts b/e2e/process-services-cloud/start-task/start-task-custom-app-cloud.e2e.ts index 0281e2c33a..859241daf0 100644 --- a/e2e/process-services-cloud/start-task/start-task-custom-app-cloud.e2e.ts +++ b/e2e/process-services-cloud/start-task/start-task-custom-app-cloud.e2e.ts @@ -92,8 +92,7 @@ describe('Start Task', () => { await identityService.deleteIdentityUser(activitiUser.idIdentityService); await identityService.deleteIdentityUser(apsUser.idIdentityService); await identityService.deleteIdentityUser(testUser.idIdentityService); - - }); + }); beforeEach(async () => { await navigationBarPage.navigateToProcessServicesCloudPage(); @@ -230,5 +229,4 @@ describe('Start Task', () => { await expect(await taskHeaderCloudPage.getAssignee()).toBe(apsUser.username); }); - }); diff --git a/e2e/process-services-cloud/start-task/start-task-group-cloud.e2e.ts b/e2e/process-services-cloud/start-task/start-task-group-cloud.e2e.ts index 08c81925df..af18724387 100644 --- a/e2e/process-services-cloud/start-task/start-task-group-cloud.e2e.ts +++ b/e2e/process-services-cloud/start-task/start-task-group-cloud.e2e.ts @@ -85,8 +85,7 @@ describe('Start Task - Group Cloud Component', () => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(apsUser.idIdentityService); await identityService.deleteIdentityUser(testUser.idIdentityService); - - }); + }); beforeEach(async () => { await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password); @@ -178,5 +177,4 @@ describe('Start Task - Group Cloud Component', () => { await groupCloud.selectGroupFromList(testGroup.name); await groupCloud.checkSelectedGroup(testGroup.name); }); - }); diff --git a/e2e/process-services-cloud/task-filters-cloud.e2e.ts b/e2e/process-services-cloud/task-filters-cloud.e2e.ts index d54e53d690..fa5dfa971f 100644 --- a/e2e/process-services-cloud/task-filters-cloud.e2e.ts +++ b/e2e/process-services-cloud/task-filters-cloud.e2e.ts @@ -105,7 +105,5 @@ describe('Task filters cloud', () => { await expect(await tasksCloudDemoPage.firstFilterIsActive()).toBe(true); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/task-form-cloud-component-tab.e2e.ts b/e2e/process-services-cloud/task-form-cloud-component-tab.e2e.ts index f324a9b953..d61d883fbd 100644 --- a/e2e/process-services-cloud/task-form-cloud-component-tab.e2e.ts +++ b/e2e/process-services-cloud/task-form-cloud-component-tab.e2e.ts @@ -342,7 +342,5 @@ describe('Task form cloud component', () => { await widget.tab().checkTabIsDisplayedByLabel(tab.tabWithFields); await widget.tab().checkTabIsDisplayedByLabel(tab.tabVarVar); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/task-form-cloud-component.e2e.ts b/e2e/process-services-cloud/task-form-cloud-component.e2e.ts index 468fb4d86f..66af1d4dbb 100644 --- a/e2e/process-services-cloud/task-form-cloud-component.e2e.ts +++ b/e2e/process-services-cloud/task-form-cloud-component.e2e.ts @@ -294,5 +294,4 @@ describe('Task form cloud component', () => { await taskFormCloudComponent.checkCompleteButtonIsNotDisplayed(); }); }); - }); diff --git a/e2e/process-services-cloud/task-list-cloud-action-menu.e2e.ts b/e2e/process-services-cloud/task-list-cloud-action-menu.e2e.ts index 5b49c055f7..c7b0f63cc3 100644 --- a/e2e/process-services-cloud/task-list-cloud-action-menu.e2e.ts +++ b/e2e/process-services-cloud/task-list-cloud-action-menu.e2e.ts @@ -111,7 +111,5 @@ describe('Process list cloud', () => { await tasksCloudDemoPage.taskListCloudComponent().clickContextMenuActionNamed('delete'); await tasksCloudDemoPage.checkActionExecuted(deleteTask.list.entries[0].entry.id, 'delete'); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/task-list-properties-sort.e2e.ts b/e2e/process-services-cloud/task-list-properties-sort.e2e.ts index ec29d83c1e..fd2cd3749b 100644 --- a/e2e/process-services-cloud/task-list-properties-sort.e2e.ts +++ b/e2e/process-services-cloud/task-list-properties-sort.e2e.ts @@ -226,5 +226,4 @@ describe('Edit task filters and task list properties', () => { await expect(await tasksCloudDemoPage.taskListCloudComponent().getDataTable().checkListIsSorted('DESC', 'Owner')).toBe(true); }); }); - }); diff --git a/e2e/process-services-cloud/task-list-properties.e2e.ts b/e2e/process-services-cloud/task-list-properties.e2e.ts index 8d9c4883cb..e641533ecf 100644 --- a/e2e/process-services-cloud/task-list-properties.e2e.ts +++ b/e2e/process-services-cloud/task-list-properties.e2e.ts @@ -364,6 +364,5 @@ describe('Edit task filters and task list properties', () => { await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedTo(afterDate); await expect(await tasksCloudDemoPage.taskListCloudComponent().getNoTasksFoundMessage()).toEqual(noTasksFoundMessage); }); - - }); + }); }); diff --git a/e2e/process-services-cloud/task-list-selection.e2e.ts b/e2e/process-services-cloud/task-list-selection.e2e.ts index c6649b576a..bd33915b34 100644 --- a/e2e/process-services-cloud/task-list-selection.e2e.ts +++ b/e2e/process-services-cloud/task-list-selection.e2e.ts @@ -176,7 +176,5 @@ describe('Task list cloud - selection', () => { await expect(await tasksCloudDemoPage.getSelectedTaskRowText('1')).toBe(tasks[0]); await expect(await tasksCloudDemoPage.getSelectedTaskRowText('2')).toBe(tasks[1]); }); - - }); - + }); }); diff --git a/e2e/process-services-cloud/tasks-custom-filters.e2e.ts b/e2e/process-services-cloud/tasks-custom-filters.e2e.ts index 897e75f9ae..f5fd082f08 100644 --- a/e2e/process-services-cloud/tasks-custom-filters.e2e.ts +++ b/e2e/process-services-cloud/tasks-custom-filters.e2e.ts @@ -185,6 +185,5 @@ describe('Task filters cloud', () => { await tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(taskAssigned.list.entries[0].entry.name); }); - - }); + }); }); diff --git a/e2e/process-services/apps-section.e2e.ts b/e2e/process-services/apps-section.e2e.ts index 2f0c31b7a6..598043f503 100644 --- a/e2e/process-services/apps-section.e2e.ts +++ b/e2e/process-services/apps-section.e2e.ts @@ -55,8 +55,7 @@ describe('Modify applications', () => { appVersionToBeDeleted = await apps.importPublishDeployApp(this.alfrescoJsApi, appToBeDeleted.file_location); await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); it('[C260198] Should the app be displayed on dashboard when is deployed on APS', async () => { await navigationBarPage.navigateToProcessServicesPage(); @@ -162,5 +161,4 @@ describe('Modify applications', () => { await expect(await processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.RED); await expect(await processServicesPage.getAppIconType(appToBeDeleted.title)).toEqual(CONSTANTS.APP_ICON.USER); }); - }); diff --git a/e2e/process-services/attach-file-widget.e2e.ts b/e2e/process-services/attach-file-widget.e2e.ts index 75637b71d8..e6fb72f3cd 100644 --- a/e2e/process-services/attach-file-widget.e2e.ts +++ b/e2e/process-services/attach-file-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Start Task - Task App', () => { await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); afterAll(async () => { this.alfrescoJsApi = new AlfrescoApi({ @@ -68,8 +67,7 @@ describe('Start Task - Task App', () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C274690] Should be able to open a file attached to a start form', async () => { await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton(); @@ -90,5 +88,4 @@ describe('Start Task - Task App', () => { await viewerPage.clickCloseButton(); await taskPage.tasksListPage().checkContentIsDisplayed('View file'); }); - }); diff --git a/e2e/process-services/attach-form-component.e2e.ts b/e2e/process-services/attach-form-component.e2e.ts index 252e19bb15..192fd89aaa 100644 --- a/e2e/process-services/attach-form-component.e2e.ts +++ b/e2e/process-services/attach-form-component.e2e.ts @@ -70,15 +70,13 @@ describe('Attach Form Component', () => { await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: testNames.taskName }); await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId); await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - - }); + }); it('[C280047] Should be able to view the attach-form component after creating a standalone task', async () => { await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton(); diff --git a/e2e/process-services/checklist-component.e2e.ts b/e2e/process-services/checklist-component.e2e.ts index 9585b3d7f2..03b37b6289 100644 --- a/e2e/process-services/checklist-component.e2e.ts +++ b/e2e/process-services/checklist-component.e2e.ts @@ -69,16 +69,14 @@ describe('Checklist component', () => { } await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { await navigationBarPage.clickHomeButton(); await navigationBarPage.navigateToProcessServicesPage(); await (await processServices.goToTaskApp()).clickTasksButton(); await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); - - }); + }); it('[C279976] Should no checklist be created when no title is typed', async () => { await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]); @@ -202,5 +200,4 @@ describe('Checklist component', () => { await taskPage.tasksListPage().checkContentIsDisplayed(hierarchyChecklist[2]); await taskPage.tasksListPage().checkContentIsDisplayed(hierarchyChecklist[3]); }); - }); diff --git a/e2e/process-services/comment-component-processes.e2e.ts b/e2e/process-services/comment-component-processes.e2e.ts index 7500ff9617..dbcd6dc52a 100644 --- a/e2e/process-services/comment-component-processes.e2e.ts +++ b/e2e/process-services/comment-component-processes.e2e.ts @@ -58,14 +58,12 @@ describe('Comment component for Processes', () => { processInstanceId = processWithComment.id; await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId); await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - }); it('[C260464] Should be able to add a comment on APS and check on ADF', async () => { diff --git a/e2e/process-services/comment-component-tasks.e2e.ts b/e2e/process-services/comment-component-tasks.e2e.ts index bb4fa3b4bd..2d16dc0292 100644 --- a/e2e/process-services/comment-component-tasks.e2e.ts +++ b/e2e/process-services/comment-component-tasks.e2e.ts @@ -65,16 +65,12 @@ describe('Comment component for Processes', () => { appId = importedApp.id; await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId); - await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); - await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - }); it('[C260237] Should not be able to add a comment on a completed task', async () => { diff --git a/e2e/process-services/custom-process-filters-sorting.e2e.ts b/e2e/process-services/custom-process-filters-sorting.e2e.ts index 05ab2ca452..b8ad9b370b 100644 --- a/e2e/process-services/custom-process-filters-sorting.e2e.ts +++ b/e2e/process-services/custom-process-filters-sorting.e2e.ts @@ -53,8 +53,7 @@ describe('Sorting for process filters', () => { provider: 'BPM', hostBpm: browser.params.testConfig.adf_aps.host }); - - }); + }); beforeEach(async () => { const users = new UsersActions(); @@ -70,8 +69,7 @@ describe('Sorting for process filters', () => { appId = importedApp.id; await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); afterEach(async () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId); @@ -79,8 +77,7 @@ describe('Sorting for process filters', () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - - }); + }); it('[C260476] Should be able to create a filter on APS for running processes - Oldest first and check on ADF', async () => { await this.alfrescoJsApi.activiti.userFiltersApi.createUserProcessInstanceFilter({ diff --git a/e2e/process-services/custom-process-filters.e2e.ts b/e2e/process-services/custom-process-filters.e2e.ts index d1d2df21ca..623aae038e 100644 --- a/e2e/process-services/custom-process-filters.e2e.ts +++ b/e2e/process-services/custom-process-filters.e2e.ts @@ -64,14 +64,12 @@ describe('New Process Filters', () => { await this.alfrescoJsApi.login(user.email, user.password); await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - - }); + }); it('[C279965] Should be able to view default filters on ADF', async () => { await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton(); @@ -192,5 +190,4 @@ describe('New Process Filters', () => { await processFiltersPage.checkFilterIsNotDisplayed(processFilter.deleted); }); - }); diff --git a/e2e/process-services/custom-tasks-filters.e2e.ts b/e2e/process-services/custom-tasks-filters.e2e.ts index 81772ac726..7fcb4303f3 100644 --- a/e2e/process-services/custom-tasks-filters.e2e.ts +++ b/e2e/process-services/custom-tasks-filters.e2e.ts @@ -116,8 +116,7 @@ describe('Start Task - Custom App', () => { }); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); describe('', () => { @@ -492,5 +491,4 @@ describe('Start Task - Custom App', () => { await expect(await taskListSinglePage.taskList().getNoTasksFoundMessage()).toEqual(noTasksFoundMessage); }); - }); diff --git a/e2e/process-services/dynamic-table-date-picker.e2e.ts b/e2e/process-services/dynamic-table-date-picker.e2e.ts index 527444bc80..49f9812f48 100644 --- a/e2e/process-services/dynamic-table-date-picker.e2e.ts +++ b/e2e/process-services/dynamic-table-date-picker.e2e.ts @@ -48,15 +48,13 @@ describe('Dynamic Table', () => { user = await users.createTenantAndUser(this.alfrescoJsApi); tenantId = user.tenantId; - - }); + }); afterAll(async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - - }); + }); describe('Date Picker', () => { const app = browser.params.resources.Files.DYNAMIC_TABLE_APP; @@ -171,5 +169,4 @@ describe('Dynamic Table', () => { await widget.dynamicTable().checkItemIsPresent(dropdownOption); }); }); - }); diff --git a/e2e/process-services/empty-process-list-component.e2e.ts b/e2e/process-services/empty-process-list-component.e2e.ts index 4b53c569e3..70d6c86c36 100644 --- a/e2e/process-services/empty-process-list-component.e2e.ts +++ b/e2e/process-services/empty-process-list-component.e2e.ts @@ -61,8 +61,7 @@ describe('Empty Process List Test', () => { await apps.importPublishDeployApp(this.alfrescoJsApi, appB.file_location); await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); it('[C260494] Should add process to list when a process is created', async () => { await navigationBarPage.navigateToProcessServicesPage(); @@ -93,5 +92,4 @@ describe('Empty Process List Test', () => { await processDetailsPage.checkProcessDetailsCard(); }); - }); diff --git a/e2e/process-services/form-component.e2e.ts b/e2e/process-services/form-component.e2e.ts index ef04c13d45..f28df69ddc 100644 --- a/e2e/process-services/form-component.e2e.ts +++ b/e2e/process-services/form-component.e2e.ts @@ -100,6 +100,5 @@ describe('Form Component', () => { await formPage.checkErrorMessageForWidgetIsNotDisplayed(message.warningDate); await formPage.checkErrorMessageIsNotDisplayed(message.errorLogDate); await formPage.checkErrorLogMessage(message.errorLabel); - - }); + }); }); diff --git a/e2e/process-services/form-people-widget.e2e.ts b/e2e/process-services/form-people-widget.e2e.ts index 339fa55a0e..a7b4587d66 100644 --- a/e2e/process-services/form-people-widget.e2e.ts +++ b/e2e/process-services/form-people-widget.e2e.ts @@ -59,16 +59,14 @@ describe('Form widgets - People', () => { appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, app.file_location); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); afterAll(async () => { await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); beforeEach(async () => { await (await (await new NavigationBarPage().navigateToProcessServicesPage()).goToApp(appModel.name)).clickProcessButton(); diff --git a/e2e/process-services/form-widgets-component.e2e.ts b/e2e/process-services/form-widgets-component.e2e.ts index 2c71546a3f..c35cac070e 100644 --- a/e2e/process-services/form-widgets-component.e2e.ts +++ b/e2e/process-services/form-widgets-component.e2e.ts @@ -190,8 +190,7 @@ describe('Form widgets', () => { await expect(await widget.dynamicTable().getColumnName(appFields.dynamicTable_id)) .toContain(formInstance.getWidgetBy('id', appFields.dynamicTable_id).columnDefinitions[0].name); }); - - }); + }); describe('with fields involving other people', () => { diff --git a/e2e/process-services/info-drawer.e2e.ts b/e2e/process-services/info-drawer.e2e.ts index b0f9512a90..20ad62527b 100644 --- a/e2e/process-services/info-drawer.e2e.ts +++ b/e2e/process-services/info-drawer.e2e.ts @@ -347,5 +347,4 @@ describe('Info Drawer', () => { await expect(await taskPage.taskDetails().getCreated()).toEqual(moment(Date.now()).format(dateFormat)); await expect(await taskPage.taskDetails().getFormName()).toEqual(formName); } - }); diff --git a/e2e/process-services/pagination-processlist-adding-processes.e2e.ts b/e2e/process-services/pagination-processlist-adding-processes.e2e.ts index 1bc55d1a31..d0356289a3 100644 --- a/e2e/process-services/pagination-processlist-adding-processes.e2e.ts +++ b/e2e/process-services/pagination-processlist-adding-processes.e2e.ts @@ -67,8 +67,7 @@ describe('Process List - Pagination when adding processes', () => { await loginPage.loginToProcessServicesUsingUserModel(processUserModel); await (await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton(); - - }); + }); it('[C261046] Should keep Items per page after adding processes', async () => { await processDetailsPage.checkProcessTitleIsDisplayed(); diff --git a/e2e/process-services/pagination-tasklist-adding-tasks.e2e.ts b/e2e/process-services/pagination-tasklist-adding-tasks.e2e.ts index 5da57efa4c..29bf69d470 100644 --- a/e2e/process-services/pagination-tasklist-adding-tasks.e2e.ts +++ b/e2e/process-services/pagination-tasklist-adding-tasks.e2e.ts @@ -66,8 +66,7 @@ describe('Items per page set to 15 and adding of tasks', () => { } await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); it('[C260306] Items per page set to 15 and adding of tasks', async () => { await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp(); @@ -94,5 +93,4 @@ describe('Items per page set to 15 and adding of tasks', () => { await paginationPage.checkNextPageButtonIsDisabled(); await paginationPage.checkPreviousPageButtonIsEnabled(); }); - }); diff --git a/e2e/process-services/people-component.e2e.ts b/e2e/process-services/people-component.e2e.ts index 5ffb7999e2..ee52fdc8ea 100644 --- a/e2e/process-services/people-component.e2e.ts +++ b/e2e/process-services/people-component.e2e.ts @@ -69,8 +69,7 @@ describe('People component', () => { await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: tasks[2] }); await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: tasks[3] }); await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: tasks[4] }); - - }); + }); beforeEach(async () => { await loginPage.loginToProcessServicesUsingUserModel(processUserModel); @@ -78,8 +77,7 @@ describe('People component', () => { await navigationBarPage.navigateToProcessServicesPage(); await (await processServices.goToTaskApp()).clickTasksButton(); await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); - - }); + }); it('[C279989] Should no people be involved when no user is typed', async () => { await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]); @@ -231,5 +229,4 @@ describe('People component', () => { await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS); await taskPage.tasksListPage().checkContentIsNotDisplayed(tasks[3]); }); - }); diff --git a/e2e/process-services/process-attachment-list-action-menu.e2e.ts b/e2e/process-services/process-attachment-list-action-menu.e2e.ts index 4a97530ce7..a3aa87b2e9 100644 --- a/e2e/process-services/process-attachment-list-action-menu.e2e.ts +++ b/e2e/process-services/process-attachment-list-action-menu.e2e.ts @@ -77,14 +77,12 @@ describe('Attachment list action menu for processes', () => { await apps.startProcess(this.alfrescoJsApi, 'Task App', processName.dragDrop); await loginPage.loginToProcessServicesUsingUserModel(user); - }); afterAll(async () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId); await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - }); it('[C260228] Should be able to access options of a file attached to an active process', async () => { @@ -179,5 +177,4 @@ describe('Attachment list action menu for processes', () => { await attachmentListPage.checkFileIsRemoved(pngFile.name); await attachmentListPage.checkEmptyAttachmentList(); }); - }); diff --git a/e2e/process-services/process-filters-component.e2e.ts b/e2e/process-services/process-filters-component.e2e.ts index d1734bea07..0b5d36a360 100644 --- a/e2e/process-services/process-filters-component.e2e.ts +++ b/e2e/process-services/process-filters-component.e2e.ts @@ -255,5 +255,4 @@ describe('Process Filters Test', () => { await expect(await processDetailsPage.getCreatedBy()).toEqual(`${user.firstName} ${user.lastName}`); await expect(await processDetailsPage.getProcessDescription()).toEqual(CONSTANTS.PROCESS_DESCRIPTION); } - }); diff --git a/e2e/process-services/process-instance-details.e2e.ts b/e2e/process-services/process-instance-details.e2e.ts index 8bc271a90a..bea5948751 100644 --- a/e2e/process-services/process-instance-details.e2e.ts +++ b/e2e/process-services/process-instance-details.e2e.ts @@ -67,19 +67,16 @@ describe('Process Instance Details', () => { await processListPage.checkProcessListIsDisplayed(); process = await this.alfrescoJsApi.activiti.processApi.getProcessInstance(processModel.id); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appModel.id); await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(user.tenantId); - - }); + }); it('[C307031] Should display the created date in the default format', async () => { await processDetailsPage.checkDetailsAreDisplayed(); await expect(await processDetailsPage.getCreated()).toEqual(moment(process.started).format(PROCESS_DATE_FORMAT)); }); - }); diff --git a/e2e/process-services/process-list-component.e2e.ts b/e2e/process-services/process-list-component.e2e.ts index 51176def06..adbdb46e1b 100644 --- a/e2e/process-services/process-list-component.e2e.ts +++ b/e2e/process-services/process-list-component.e2e.ts @@ -82,8 +82,7 @@ describe('Process List Test', () => { await this.alfrescoJsApi.activiti.taskFormsApi.completeTaskForm(procWithUserWidgetTaskId.toString(), { values: { label: null } }); await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appDateModel.id); @@ -92,13 +91,11 @@ describe('Process List Test', () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(user.tenantId); - - }); + }); beforeEach(async () => { await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/process-list'); - - }); + }); it('[C286638] Should display all process by default', async () => { await processListDemoPage.checkAppIdFieldIsDisplayed(); diff --git a/e2e/process-services/processlist-pagination.e2e.ts b/e2e/process-services/processlist-pagination.e2e.ts index c8ad6b4a91..361dc6df36 100644 --- a/e2e/process-services/processlist-pagination.e2e.ts +++ b/e2e/process-services/processlist-pagination.e2e.ts @@ -71,8 +71,7 @@ describe('Process List - Pagination', () => { deployedTestApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); describe('Empty processes', () => { diff --git a/e2e/process-services/sort-tasklist-pagination.e2e.ts b/e2e/process-services/sort-tasklist-pagination.e2e.ts index c56b85eb49..9ebf943dbe 100644 --- a/e2e/process-services/sort-tasklist-pagination.e2e.ts +++ b/e2e/process-services/sort-tasklist-pagination.e2e.ts @@ -68,8 +68,7 @@ describe('Task List Pagination - Sorting', () => { } await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); it('[C260308] Should be possible to sort tasks by name', async () => { await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp(); @@ -88,5 +87,4 @@ describe('Task List Pagination - Sorting', () => { await expect(JSON.stringify(list) === JSON.stringify(taskNames)).toEqual(true); }); }); - }); diff --git a/e2e/process-services/standalone-task.e2e.ts b/e2e/process-services/standalone-task.e2e.ts index 7f870e6def..707858b416 100644 --- a/e2e/process-services/standalone-task.e2e.ts +++ b/e2e/process-services/standalone-task.e2e.ts @@ -60,14 +60,12 @@ describe('Start Task - Task App', () => { await this.alfrescoJsApi.activiti.appsApi.importAppDefinition(file); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton(); await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); - - }); + }); it('[C260421] Should a standalone task be displayed when creating a new task without form', async () => { @@ -138,5 +136,4 @@ describe('Start Task - Task App', () => { await expect(await taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM); await expect(await taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage); }); - }); diff --git a/e2e/process-services/start-task-custom-app.e2e.ts b/e2e/process-services/start-task-custom-app.e2e.ts index 047497875f..690c241747 100644 --- a/e2e/process-services/start-task-custom-app.e2e.ts +++ b/e2e/process-services/start-task-custom-app.e2e.ts @@ -71,8 +71,7 @@ describe('Start Task - Custom App', () => { appModel = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); it('[C263942] Should be possible to modify a task', async () => { await (await (await navigationBarPage.navigateToProcessServicesPage()).goToApp(appModel.name)).clickTasksButton(); @@ -84,9 +83,7 @@ describe('Start Task - Custom App', () => { await task.addForm(app.formName); await task.clickStartButton(); - await taskPage - .tasksListPage() - .checkContentIsDisplayed(tasks[0]); + await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]); const taskDetails = await taskPage.taskDetails(); @@ -108,12 +105,9 @@ describe('Start Task - Custom App', () => { await checklistDialog.addName(firstChecklist); await checklistDialog.clickCreateChecklistButton(); - await taskPage - .checkChecklistIsDisplayed(firstChecklist); + await taskPage.checkChecklistIsDisplayed(firstChecklist); - await taskPage - .taskDetails() - .selectDetailsTab(); + await taskPage.taskDetails().selectDetailsTab(); }); it('[C263947] Should be able to start a task without form', async () => { @@ -121,22 +115,16 @@ describe('Start Task - Custom App', () => { await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); - await taskPage - .filtersPage() - .goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); + await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); const task = await taskPage.createNewTask(); await task.addName(tasks[2]); await task.clickStartButton(); - await taskPage - .tasksListPage() - .checkContentIsDisplayed(tasks[2]); + await taskPage.tasksListPage().checkContentIsDisplayed(tasks[2]); - await taskPage - .formFields() - .noFormIsDisplayed(); + await taskPage.formFields().noFormIsDisplayed(); await expect(await taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM); }); @@ -158,8 +146,7 @@ describe('Start Task - Custom App', () => { it('[C263949] Should be possible to save filled form', async () => { await (await (await navigationBarPage.navigateToProcessServicesPage()).goToApp(appModel.name)).clickTasksButton(); - await taskPage.filtersPage() - .goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); + await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); const task = await taskPage.createNewTask(); @@ -167,33 +154,21 @@ describe('Start Task - Custom App', () => { await task.addName(tasks[4]); await task.clickStartButton(); - await taskPage - .tasksListPage() - .checkContentIsDisplayed(tasks[4]); + await taskPage.tasksListPage().checkContentIsDisplayed(tasks[4]); - await taskPage.formFields() - .setFieldValue(by.id, formTextField, formFieldValue); + await taskPage.formFields().setFieldValue(by.id, formTextField, formFieldValue); - await taskPage - .formFields() - .refreshForm(); + await taskPage.formFields().refreshForm(); - await taskPage - .formFields().checkFieldValue(by.id, formTextField, ''); + await taskPage.formFields().checkFieldValue(by.id, formTextField, ''); - await taskPage - .tasksListPage() - .checkContentIsDisplayed(tasks[4]); + await taskPage.tasksListPage().checkContentIsDisplayed(tasks[4]); - await taskPage - .formFields() - .setFieldValue(by.id, formTextField, formFieldValue); + await taskPage.formFields().setFieldValue(by.id, formTextField, formFieldValue); await taskPage.formFields().checkFieldValue(by.id, formTextField, formFieldValue); - await taskPage - .formFields() - .saveForm(); + await taskPage.formFields().saveForm(); await taskPage.formFields().checkFieldValue(by.id, formTextField, formFieldValue); }); @@ -207,19 +182,13 @@ describe('Start Task - Custom App', () => { await task.addAssignee(assigneeUserModel.firstName); await task.clickStartButton(); - await taskPage - .tasksListPage() - .checkTaskListIsLoaded(); + await taskPage.tasksListPage().checkTaskListIsLoaded(); - await taskPage - .tasksListPage() - .getDataTable().waitForTableBody(); + await taskPage.tasksListPage().getDataTable().waitForTableBody(); - await taskPage.filtersPage() - .goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS); + await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS); - await taskPage.tasksListPage() - .checkContentIsDisplayed(tasks[5]); + await taskPage.tasksListPage().checkContentIsDisplayed(tasks[5]); await taskPage.tasksListPage().selectRow(tasks[5]); await taskPage.checkTaskTitle(tasks[5]); @@ -258,5 +227,4 @@ describe('Start Task - Custom App', () => { await taskPage.taskDetails().taskInfoDrawerIsDisplayed(); }); - }); diff --git a/e2e/process-services/start-task-task-app.e2e.ts b/e2e/process-services/start-task-task-app.e2e.ts index ebccb1979e..6381df24d0 100644 --- a/e2e/process-services/start-task-task-app.e2e.ts +++ b/e2e/process-services/start-task-task-app.e2e.ts @@ -79,14 +79,12 @@ describe('Start Task - Task App', () => { await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: showHeaderTask }); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp(); await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS); - - }); + }); it('[C260383] Should be possible to modify a task', async () => { const task = await taskPage.createNewTask(); @@ -199,7 +197,5 @@ describe('Start Task - Task App', () => { await startDialog.blur(startDialog.name); await startDialog.checkValidationErrorIsDisplayed(lengthValidationError); await startDialog.checkStartButtonIsDisabled(); - - }); - + }); }); diff --git a/e2e/process-services/task-assignee.e2e.ts b/e2e/process-services/task-assignee.e2e.ts index 7c90d82a2d..00b63b5913 100644 --- a/e2e/process-services/task-assignee.e2e.ts +++ b/e2e/process-services/task-assignee.e2e.ts @@ -237,5 +237,4 @@ describe('Task Assignee', () => { await taskPage.taskDetails().checkClaimEnabled(); }); }); - }); diff --git a/e2e/process-services/task-attachment-list-action-menu.e2e.ts b/e2e/process-services/task-attachment-list-action-menu.e2e.ts index c3d6dea6ad..ab3bfb78ae 100644 --- a/e2e/process-services/task-attachment-list-action-menu.e2e.ts +++ b/e2e/process-services/task-attachment-list-action-menu.e2e.ts @@ -73,7 +73,6 @@ describe('Attachment list action menu for tasks', () => { await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId); await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId); - }); it('[C277311] Should be able to View /Download /Remove from Attachment List on an active task', async () => { diff --git a/e2e/process-services/task-audit.e2e.ts b/e2e/process-services/task-audit.e2e.ts index 2db88bc115..c1f8af35dc 100644 --- a/e2e/process-services/task-audit.e2e.ts +++ b/e2e/process-services/task-audit.e2e.ts @@ -119,5 +119,4 @@ describe('Task Audit', () => { await taskPage.taskDetails().clickAuditLogButton(); await expect(await FileBrowserUtil.isFileDownloaded(auditLogFile)).toBe(true); }); - }); diff --git a/e2e/process-services/task-details-form.e2e.ts b/e2e/process-services/task-details-form.e2e.ts index 26e1895f56..3d40ab4253 100644 --- a/e2e/process-services/task-details-form.e2e.ts +++ b/e2e/process-services/task-details-form.e2e.ts @@ -78,8 +78,7 @@ describe('Task Details - Form', () => { otherTask = await this.alfrescoJsApi.activiti.taskApi.getTask(otherEmptyTask.id); await loginPage.loginToProcessServicesUsingUserModel(user); - - }); + }); afterAll( async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); diff --git a/e2e/process-services/task-details-no-form.e2e.ts b/e2e/process-services/task-details-no-form.e2e.ts index ca57f74709..5151adbeed 100644 --- a/e2e/process-services/task-details-no-form.e2e.ts +++ b/e2e/process-services/task-details-no-form.e2e.ts @@ -51,8 +51,7 @@ describe('Task Details - No form', () => { importedApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location); await apps.startProcess(this.alfrescoJsApi, importedApp); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); afterAll( async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); @@ -71,7 +70,5 @@ describe('Task Details - No form', () => { await taskPage.taskDetails().checkAttachFormButtonIsNotDisplayed(); await expect(await taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM); await expect(await taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage); - - }); - + }); }); diff --git a/e2e/process-services/task-details.e2e.ts b/e2e/process-services/task-details.e2e.ts index e82c8c9013..5baaba93d1 100644 --- a/e2e/process-services/task-details.e2e.ts +++ b/e2e/process-services/task-details.e2e.ts @@ -329,5 +329,4 @@ describe('Task Details component', () => { await taskPage.taskDetails().checkEditPriorityButtonIsNotDisplayed(); await taskPage.taskDetails().checkDueDatePickerButtonIsNotDisplayed(); }); - }); diff --git a/e2e/process-services/task-filters-component.e2e.ts b/e2e/process-services/task-filters-component.e2e.ts index 07b0f172fc..6945e692e1 100644 --- a/e2e/process-services/task-filters-component.e2e.ts +++ b/e2e/process-services/task-filters-component.e2e.ts @@ -273,7 +273,5 @@ describe('Task', () => { await taskFiltersDemoPage.myTasksFilter().checkTaskFilterIsDisplayed(); await expect(await taskFiltersDemoPage.myTasksFilter().getTaskFilterIcon()).toEqual('inbox'); }); - - }); - + }); }); diff --git a/e2e/process-services/task-filters-sorting.e2e.ts b/e2e/process-services/task-filters-sorting.e2e.ts index 14accfdc93..c5b1f25aa3 100644 --- a/e2e/process-services/task-filters-sorting.e2e.ts +++ b/e2e/process-services/task-filters-sorting.e2e.ts @@ -106,8 +106,7 @@ describe('Task Filters Sorting', () => { await expect(await tasksListPage.getDataTable().contentInPosition(1)).toBe(tasks[2].name); await expect(await tasksListPage.getDataTable().contentInPosition(2)).toBe(tasks[1].name); await expect(await tasksListPage.getDataTable().contentInPosition(3)).toBe(tasks[0].name); - - }); + }); it('[C277255] Should display tasks under new filter from oldest to newest when they are completed', async () => { const newFilter = new UserProcessInstanceFilterRepresentation({ diff --git a/e2e/process-services/task-list-pagination.e2e.ts b/e2e/process-services/task-list-pagination.e2e.ts index bc3578dee3..9bdebf2575 100644 --- a/e2e/process-services/task-list-pagination.e2e.ts +++ b/e2e/process-services/task-list-pagination.e2e.ts @@ -193,5 +193,4 @@ describe('Task List Pagination', () => { await paginationPage.checkNextPageButtonIsEnabled(); await paginationPage.checkPreviousPageButtonIsDisabled(); }); - }); diff --git a/e2e/process-services/widgets/amount-widget.e2e.ts b/e2e/process-services/widgets/amount-widget.e2e.ts index 8f44718842..ffee8e258f 100644 --- a/e2e/process-services/widgets/amount-widget.e2e.ts +++ b/e2e/process-services/widgets/amount-widget.e2e.ts @@ -57,8 +57,7 @@ describe('Amount Widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async() => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -71,8 +70,7 @@ describe('Amount Widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C274703] Should be possible to set general, advance and visibility properties for Amount Widget', async () => { await taskPage.formFields().checkWidgetIsHidden(app.FIELD.amount_input_id); diff --git a/e2e/process-services/widgets/attach-folder-widget.e2e.ts b/e2e/process-services/widgets/attach-folder-widget.e2e.ts index 1b48b22a9c..8af203f5be 100644 --- a/e2e/process-services/widgets/attach-folder-widget.e2e.ts +++ b/e2e/process-services/widgets/attach-folder-widget.e2e.ts @@ -55,8 +55,7 @@ describe('Attach Folder widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -69,8 +68,7 @@ describe('Attach Folder widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C276745] Should be possible to set visibility properties for Attach Folder Widget', async () => { await taskPage.formFields().checkWidgetIsHidden(app.FIELD.upload_button_id); diff --git a/e2e/process-services/widgets/checkbox-widget.e2e.ts b/e2e/process-services/widgets/checkbox-widget.e2e.ts index c5fdd51c3a..e68b40ed49 100644 --- a/e2e/process-services/widgets/checkbox-widget.e2e.ts +++ b/e2e/process-services/widgets/checkbox-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Checkbox Widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,8 +69,7 @@ describe('Checkbox Widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C268554] Should be able to set general settings for Checkbox widget ', async () => { await taskPage.formFields().setValueInInputById(app.FIELD.number_input_id, 2); diff --git a/e2e/process-services/widgets/date-time-widget.e2e.ts b/e2e/process-services/widgets/date-time-widget.e2e.ts index eadecd75a7..13d2689049 100644 --- a/e2e/process-services/widgets/date-time-widget.e2e.ts +++ b/e2e/process-services/widgets/date-time-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Date and time widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; diff --git a/e2e/process-services/widgets/date-widget.e2e.ts b/e2e/process-services/widgets/date-widget.e2e.ts index be6d7b961a..e0dac90638 100644 --- a/e2e/process-services/widgets/date-widget.e2e.ts +++ b/e2e/process-services/widgets/date-widget.e2e.ts @@ -59,15 +59,13 @@ describe('Date widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); afterAll(async () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); describe('Simple App', () => { diff --git a/e2e/process-services/widgets/document-template-widget.e2e.ts b/e2e/process-services/widgets/document-template-widget.e2e.ts index 60109efaaf..b5454ecf1e 100644 --- a/e2e/process-services/widgets/document-template-widget.e2e.ts +++ b/e2e/process-services/widgets/document-template-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Document Template widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,8 +69,7 @@ describe('Document Template widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C260406] should check that the template contains assigned file ', async () => { await expect(await widget.containerWidget().getFieldText(app.form_fields.container_id)) diff --git a/e2e/process-services/widgets/dropdown-widget.e2e.ts b/e2e/process-services/widgets/dropdown-widget.e2e.ts index 547d5f89fa..a582b29d1d 100644 --- a/e2e/process-services/widgets/dropdown-widget.e2e.ts +++ b/e2e/process-services/widgets/dropdown-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Dropdown widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; diff --git a/e2e/process-services/widgets/dynamic-table-widget.e2e.ts b/e2e/process-services/widgets/dynamic-table-widget.e2e.ts index 4ba8f48c30..5314473532 100644 --- a/e2e/process-services/widgets/dynamic-table-widget.e2e.ts +++ b/e2e/process-services/widgets/dynamic-table-widget.e2e.ts @@ -160,5 +160,4 @@ describe('Dynamic Table widget ', () => { await widget.dynamicTable().checkTableRowIsNotVisible(1); }); }); - }); diff --git a/e2e/process-services/widgets/header-widget.e2e.ts b/e2e/process-services/widgets/header-widget.e2e.ts index 750aa6b02f..da2afc37b8 100644 --- a/e2e/process-services/widgets/header-widget.e2e.ts +++ b/e2e/process-services/widgets/header-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Header widget', async () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,8 +69,7 @@ describe('Header widget', async () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C276737] Should be able to set general and visibility properties for Header widget', async () => { await taskPage.formFields().checkWidgetIsHidden(app.FIELD.header_id); diff --git a/e2e/process-services/widgets/hyperlink-widget.e2e.ts b/e2e/process-services/widgets/hyperlink-widget.e2e.ts index e0290a4b56..e2fc8a6062 100644 --- a/e2e/process-services/widgets/hyperlink-widget.e2e.ts +++ b/e2e/process-services/widgets/hyperlink-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Hyperlink widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,8 +69,7 @@ describe('Hyperlink widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C276728] Should be able to set visibility properties for Hyperlink widget', async () => { await taskPage.formFields().checkWidgetIsHidden(app.FIELD.hyperlink_id); diff --git a/e2e/process-services/widgets/multi-line-widget.e2e.ts b/e2e/process-services/widgets/multi-line-widget.e2e.ts index 1d72cf7e9c..382e6b65b8 100644 --- a/e2e/process-services/widgets/multi-line-widget.e2e.ts +++ b/e2e/process-services/widgets/multi-line-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Multi-line Widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,8 +69,7 @@ describe('Multi-line Widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C268182] Should be able to set general properties for Multi-line Text Widget', async () => { const label = await widget.multilineTextWidget().getFieldLabel(app.FIELD.multiSimple); diff --git a/e2e/process-services/widgets/number-widget.e2e.ts b/e2e/process-services/widgets/number-widget.e2e.ts index 89d19522ad..082add112e 100644 --- a/e2e/process-services/widgets/number-widget.e2e.ts +++ b/e2e/process-services/widgets/number-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Number widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,8 +69,7 @@ describe('Number widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C269111] Should be able to set general properties for Number Widget', async () => { await expect(await taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy(); diff --git a/e2e/process-services/widgets/people-widget.e2e.ts b/e2e/process-services/widgets/people-widget.e2e.ts index 2e900f44b3..33f377376e 100644 --- a/e2e/process-services/widgets/people-widget.e2e.ts +++ b/e2e/process-services/widgets/people-widget.e2e.ts @@ -56,8 +56,7 @@ describe('People widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,22 +69,9 @@ describe('People widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); + }); - }); - - it('[C260435] Should select user from People Widget', async () => { - await taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id); - await widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id); - await taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id); - - const admin = processUserModel.firstName + ' ' + processUserModel.lastName; - await widget.peopleWidget().insertUser(app.FIELD.widget_id, admin.charAt(0)); - await widget.peopleWidget().checkDropDownListIsDisplayed(); - await widget.peopleWidget().checkUserIsListed(admin); - await widget.peopleWidget().selectUserFromDropDown(admin); - }); - - it('[C274707] Should be possible to set visibility properties for People Widget', async () => { + it('[C260435][C274707] Should be possible to set visibility properties for People Widget', async () => { await taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id); await widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id); await taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id); diff --git a/e2e/process-services/widgets/radio-buttons-widget.e2e.ts b/e2e/process-services/widgets/radio-buttons-widget.e2e.ts index 8e4ca39497..3c0c40cfb9 100644 --- a/e2e/process-services/widgets/radio-buttons-widget.e2e.ts +++ b/e2e/process-services/widgets/radio-buttons-widget.e2e.ts @@ -57,8 +57,7 @@ describe('Radio Buttons Widget', () => { process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -71,8 +70,7 @@ describe('Radio Buttons Widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C277316] Should display empty radio buttons when no preselection is configured', async () => { await widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id); diff --git a/e2e/process-services/widgets/text-widget.e2e.ts b/e2e/process-services/widgets/text-widget.e2e.ts index 796b329e66..24d78bc5d1 100644 --- a/e2e/process-services/widgets/text-widget.e2e.ts +++ b/e2e/process-services/widgets/text-widget.e2e.ts @@ -56,8 +56,7 @@ describe('Text widget', () => { }); process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - - }); + }); beforeEach(async () => { const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`; @@ -70,8 +69,7 @@ describe('Text widget', () => { await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id); await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - - }); + }); it('[C268157] Should be able to set general properties for Text widget', async () => { const label = await widget.textWidget().getFieldLabel(app.FIELD.simpleText); diff --git a/e2e/search/components/search-check-list.e2e.ts b/e2e/search/components/search-check-list.e2e.ts index ae06b9b272..2a38b274a1 100644 --- a/e2e/search/components/search-check-list.e2e.ts +++ b/e2e/search/components/search-check-list.e2e.ts @@ -67,8 +67,7 @@ describe('Search Checklist Component', () => { await browser.sleep(15000); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); beforeEach(async () => { await navigationBarPage.clickContentServicesButton(); @@ -82,8 +81,7 @@ describe('Search Checklist Component', () => { await uploadActions.deleteFileOrFolder(createdFolder.entry.id); await navigationBarPage.clickLogoutButton(); - - }); + }); it('[C276991] Should be able to click between options and Clear All button', async() => { await searchFiltersPage.checkCheckListFilterIsDisplayed(); @@ -273,8 +271,7 @@ describe('Search Checklist Component', () => { await searchFiltersPage.checkListFiltersPage().checkShowMoreButtonIsNotDisplayed(); await searchFiltersPage.checkListFiltersPage().checkShowLessButtonIsDisplayed(); }); - - }); + }); describe('Properties', () => { @@ -344,5 +341,4 @@ describe('Search Checklist Component', () => { await searchResults.checkContentIsDisplayed(nodeNames.document); }); }); - }); diff --git a/e2e/search/components/search-date-range.e2e.ts b/e2e/search/components/search-date-range.e2e.ts index 5da6984334..ac7aa37e21 100644 --- a/e2e/search/components/search-date-range.e2e.ts +++ b/e2e/search/components/search-date-range.e2e.ts @@ -47,8 +47,7 @@ describe('Search Date Range Filter', () => { await searchDialog.checkSearchIconIsVisible(); await searchDialog.clickOnSearchIcon(); await searchDialog.enterTextAndPressEnter('*'); - - }); + }); beforeEach(async () => { await searchFilters.checkCreatedRangeFilterIsDisplayed(); @@ -58,8 +57,7 @@ describe('Search Date Range Filter', () => { afterEach(async () => { await browser.refresh(); - - }); + }); it('[C277106] Should display default values for Date Range widget', async () => { await dateRangeFilter.checkFromFieldIsDisplayed(); diff --git a/e2e/search/components/search-number-range.e2e.ts b/e2e/search/components/search-number-range.e2e.ts index fe55f58d0c..f1d61466af 100644 --- a/e2e/search/components/search-number-range.e2e.ts +++ b/e2e/search/components/search-number-range.e2e.ts @@ -72,8 +72,7 @@ describe('Search Number Range Filter', () => { await searchDialog.checkSearchIconIsVisible(); await searchDialog.clickOnSearchIcon(); await searchDialog.enterTextAndPressEnter('*'); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.login(acsUser.id, acsUser.password); @@ -81,8 +80,7 @@ describe('Search Number Range Filter', () => { await uploadActions.deleteFileOrFolder(file0Bytes.entry.id); await navigationBarPage.clickLogoutButton(); - - }); + }); beforeEach(async () => { await searchFilters.checkSizeRangeFilterIsDisplayed(); @@ -92,8 +90,7 @@ describe('Search Number Range Filter', () => { afterEach(async () => { await browser.refresh(); - - }); + }); it('[C276921] Should display default values for Number Range widget', async () => { await sizeRangeFilter.checkFromFieldIsDisplayed(); diff --git a/e2e/search/components/search-radio.e2e.ts b/e2e/search/components/search-radio.e2e.ts index 6865dfb859..cba315b0c2 100644 --- a/e2e/search/components/search-radio.e2e.ts +++ b/e2e/search/components/search-radio.e2e.ts @@ -76,8 +76,7 @@ describe('Search Radio Component', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/search;q=' + randomName); - - }); + }); afterAll(async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); @@ -86,8 +85,7 @@ describe('Search Radio Component', () => { await uploadActions.deleteFileOrFolder(createdFolder.entry.id); await navigationBarPage.clickLogoutButton(); - - }); + }); it('[C277039] Should be able to choose only one option at a time', async () => { await searchFiltersPage.checkTypeFilterIsDisplayed(); @@ -250,8 +248,7 @@ describe('Search Radio Component', () => { await searchFiltersPage.typeFiltersPage().checkShowMoreButtonIsDisplayed(); await searchFiltersPage.typeFiltersPage().checkShowLessButtonIsNotDisplayed(); }); - - }); + }); describe('Properties', () => { @@ -293,7 +290,5 @@ describe('Search Radio Component', () => { await searchResults.checkContentIsDisplayed(nodeNames.document); await searchResults.checkContentIsNotDisplayed(nodeNames.folder); }); - - }); - + }); }); diff --git a/e2e/search/components/search-slider.e2e.ts b/e2e/search/components/search-slider.e2e.ts index 9384834d75..65c7d0a8eb 100644 --- a/e2e/search/components/search-slider.e2e.ts +++ b/e2e/search/components/search-slider.e2e.ts @@ -66,8 +66,7 @@ describe('Search Slider Filter', () => { await searchDialog.checkSearchIconIsVisible(); await searchDialog.clickOnSearchIcon(); await searchDialog.enterTextAndPressEnter('*'); - - }); + }); afterAll(async () => { try { @@ -77,8 +76,7 @@ describe('Search Slider Filter', () => { } await navigationBarPage.clickLogoutButton(); - - }); + }); afterEach(async () => { await browser.refresh(); diff --git a/e2e/search/components/search-sorting-picker.e2e.ts b/e2e/search/components/search-sorting-picker.e2e.ts index 45906dc3a5..c3120e3a3e 100644 --- a/e2e/search/components/search-sorting-picker.e2e.ts +++ b/e2e/search/components/search-sorting-picker.e2e.ts @@ -74,16 +74,14 @@ describe('Search Sorting Picker', () => { await browser.sleep(12000); await loginPage.loginToContentServices(acsUser.id, acsUser.password); - - }); + }); afterAll(async () => { await uploadActions.deleteFileOrFolder(pngA.entry.id); await uploadActions.deleteFileOrFolder(pngD.entry.id); await navigationBarPage.clickLogoutButton(); - - }); + }); beforeEach(async () => { await searchDialog.clickOnSearchIcon(); @@ -223,5 +221,4 @@ describe('Search Sorting Picker', () => { } await expect(contentServices.checkElementsDateSortedAsc(modifiedDateList)).toBe(true); }); - }); diff --git a/e2e/search/components/search-text.e2e.ts b/e2e/search/components/search-text.e2e.ts index 4c0bc687ce..690b7046d3 100644 --- a/e2e/search/components/search-text.e2e.ts +++ b/e2e/search/components/search-text.e2e.ts @@ -67,8 +67,7 @@ describe('Search component - Text widget', () => { await browser.sleep(15000); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); diff --git a/e2e/search/search-component.e2e.ts b/e2e/search/search-component.e2e.ts index c9ed9629af..bf12714bf1 100644 --- a/e2e/search/search-component.e2e.ts +++ b/e2e/search/search-component.e2e.ts @@ -105,8 +105,7 @@ describe('Search component - Search Bar', () => { await browser.sleep(15000); // wait search index previous file/folder uploaded await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { for (const currentNode of filesToDelete) { @@ -118,8 +117,7 @@ describe('Search component - Search Bar', () => { afterEach(async () => { await BrowserActions.getUrl(browser.params.testConfig.adf.url); - - }); + }); it('[C272798] Search bar should be visible', async () => { await searchDialog.checkSearchBarIsNotVisible(); diff --git a/e2e/search/search-filters.e2e.ts b/e2e/search/search-filters.e2e.ts index 791dac9cc2..5f73001db2 100644 --- a/e2e/search/search-filters.e2e.ts +++ b/e2e/search/search-filters.e2e.ts @@ -252,8 +252,7 @@ describe('Search Filters', () => { await searchResults.checkContentIsDisplayed(fileTypeJpg.entry.name); await searchFiltersPage.checkFileTypeFacetLabelIsDisplayed('Plain Text (2)'); await searchFiltersPage.checkFileTypeFacetLabelIsDisplayed('JPEG Image (1)'); - - }); + }); it('[C299124] Should be able to parse escaped empty spaced labels inside facetFields', async () => { await navigationBarPage.clickContentServicesButton(); @@ -269,5 +268,4 @@ describe('Search Filters', () => { await searchFiltersPage.checkCustomFacetFieldLabelIsDisplayed('My File Types'); await searchFiltersPage.checkCustomFacetFieldLabelIsDisplayed('My File Sizes'); }); - }); diff --git a/e2e/search/search-page-component.e2e.ts b/e2e/search/search-page-component.e2e.ts index 712a3ede61..ee8c81b90c 100644 --- a/e2e/search/search-page-component.e2e.ts +++ b/e2e/search/search-page-component.e2e.ts @@ -93,8 +93,7 @@ describe('Search component - Search Page', () => { await browser.sleep(15000); await loginPage.loginToContentServicesUsingUserModel(acsUser); - - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.spec.ts b/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.spec.ts index d80b78cd59..ca830b6057 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.spec.ts +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.spec.ts @@ -202,5 +202,4 @@ describe('ContentMetadataCardComponent', () => { component.ngOnChanges({ displayAspect }); expect(component.expanded).toBeTruthy(); }); - }); diff --git a/lib/content-services/src/lib/content-metadata/services/config/content-metadata-config.factory.spec.ts b/lib/content-services/src/lib/content-metadata/services/config/content-metadata-config.factory.spec.ts index 2be46acbe4..fe974b1576 100644 --- a/lib/content-services/src/lib/content-metadata/services/config/content-metadata-config.factory.spec.ts +++ b/lib/content-services/src/lib/content-metadata/services/config/content-metadata-config.factory.spec.ts @@ -123,6 +123,5 @@ describe('ContentMetadataConfigFactory', () => { expect(config).toEqual(jasmine.any(LayoutOrientedConfigService)); })); }); - - }); + }); }); diff --git a/lib/content-services/src/lib/content-metadata/services/content-metadata.service.spec.ts b/lib/content-services/src/lib/content-metadata/services/content-metadata.service.spec.ts index 0bca6f192a..e8671a49aa 100644 --- a/lib/content-services/src/lib/content-metadata/services/content-metadata.service.spec.ts +++ b/lib/content-services/src/lib/content-metadata/services/content-metadata.service.spec.ts @@ -126,8 +126,7 @@ describe('ContentMetaDataService', () => { expect(classesApi.getClass).toHaveBeenCalledTimes(1); expect(classesApi.getClass).toHaveBeenCalledWith('exif_exif'); }); - - }); + }); describe('LayoutOriented preset', () => { @@ -244,6 +243,5 @@ describe('ContentMetaDataService', () => { expect(classesApi.getClass).toHaveBeenCalledTimes(1); expect(classesApi.getClass).toHaveBeenCalledWith('cm_content'); }); - - }); + }); }); diff --git a/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.spec.ts b/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.spec.ts index 007ec6a6eb..0e5f7a86f2 100644 --- a/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.spec.ts +++ b/lib/content-services/src/lib/content-node-selector/content-node-dialog.service.spec.ts @@ -215,5 +215,4 @@ describe('ContentNodeDialogService', () => { }); }); }); - }); diff --git a/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts b/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts index 4ee9fce31b..a5b17c8143 100644 --- a/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts +++ b/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts @@ -113,8 +113,7 @@ describe('ContentNodeSelectorDialogComponent', () => { expect(documentList).not.toBeNull('Document list should be shown'); expect(documentList.componentInstance.imageResolver).toBe(data.imageResolver); }); - - }); + }); describe('Cancel button', () => { @@ -156,7 +155,5 @@ describe('ContentNodeSelectorDialogComponent', () => { const actionButton = fixture.debugElement.query(By.css('[data-automation-id="content-node-selector-actions-choose"]')); expect(actionButton.nativeElement.disabled).toBeFalsy(); }); - - }); - + }); }); diff --git a/lib/content-services/src/lib/dialogs/confirm.dialog.spec.ts b/lib/content-services/src/lib/dialogs/confirm.dialog.spec.ts index aa3a7a59c7..9473d46c9a 100644 --- a/lib/content-services/src/lib/dialogs/confirm.dialog.spec.ts +++ b/lib/content-services/src/lib/dialogs/confirm.dialog.spec.ts @@ -162,5 +162,4 @@ describe('Confirm Dialog Component', () => { expect(thirdOptionElement.nativeElement.innerText).toBe('YES ALL'); }); }); - }); diff --git a/lib/content-services/src/lib/dialogs/folder.dialog.spec.ts b/lib/content-services/src/lib/dialogs/folder.dialog.spec.ts index fc7df45bfa..fd6f5ccb6a 100644 --- a/lib/content-services/src/lib/dialogs/folder.dialog.spec.ts +++ b/lib/content-services/src/lib/dialogs/folder.dialog.spec.ts @@ -301,7 +301,5 @@ describe('FolderDialogComponent', () => { component.submit(); }); }); - - }); - + }); }); diff --git a/lib/content-services/src/lib/document-list/components/content-action/content-action-list.component.spec.ts b/lib/content-services/src/lib/document-list/components/content-action/content-action-list.component.spec.ts index fa130a5f0c..abdc9d2ee2 100644 --- a/lib/content-services/src/lib/document-list/components/content-action/content-action-list.component.spec.ts +++ b/lib/content-services/src/lib/document-list/components/content-action/content-action-list.component.spec.ts @@ -61,5 +61,4 @@ describe('ContentColumnList', () => { expect(result).toBeFalsy(); expect(documentList.actions.push).not.toHaveBeenCalled(); }); - }); diff --git a/lib/content-services/src/lib/document-list/components/content-action/content-action.component.spec.ts b/lib/content-services/src/lib/document-list/components/content-action/content-action.component.spec.ts index 0b756b4c8c..98b82107dc 100644 --- a/lib/content-services/src/lib/document-list/components/content-action/content-action.component.spec.ts +++ b/lib/content-services/src/lib/document-list/components/content-action/content-action.component.spec.ts @@ -249,8 +249,7 @@ describe('ContentAction', () => { expect(action.getSystemHandler('unknown', 'name')).toBeNull(); expect(folderActions.getHandler).not.toHaveBeenCalled(); expect(documentActions.getHandler).not.toHaveBeenCalled(); - - }); + }); it('should wire model with custom event handler', async(() => { const action = new ContentActionComponent(actionList, documentActions, folderActions); diff --git a/lib/content-services/src/lib/document-list/components/content-column/content-column-list.component.spec.ts b/lib/content-services/src/lib/document-list/components/content-column/content-column-list.component.spec.ts index 6d258cd057..792a8c8fe4 100644 --- a/lib/content-services/src/lib/document-list/components/content-column/content-column-list.component.spec.ts +++ b/lib/content-services/src/lib/document-list/components/content-column/content-column-list.component.spec.ts @@ -66,5 +66,4 @@ describe('ContentColumnList', () => { expect(result).toBeFalsy(); expect(documentList.actions.push).not.toHaveBeenCalled(); }); - }); diff --git a/lib/content-services/src/lib/document-list/components/content-column/content-column.component.spec.ts b/lib/content-services/src/lib/document-list/components/content-column/content-column.component.spec.ts index d657efd697..b05234972f 100644 --- a/lib/content-services/src/lib/document-list/components/content-column/content-column.component.spec.ts +++ b/lib/content-services/src/lib/document-list/components/content-column/content-column.component.spec.ts @@ -78,5 +78,4 @@ describe('ContentColumn', () => { column = new ContentColumnComponent(null, logService); expect(column.register()).toBeFalsy(); }); - }); diff --git a/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts b/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts index 35ef87eb7b..70aa809c96 100644 --- a/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts +++ b/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts @@ -156,8 +156,7 @@ describe('DocumentList', () => { documentList.executeContentAction(node, action); expect(action.handler).toHaveBeenCalledWith(node, documentList, undefined); - - }); + }); it('should call action handler with node and permission', () => { const node = new FileNode(); @@ -336,8 +335,7 @@ describe('DocumentList', () => { expect(actions.length).toBe(1); expect(actions[0].title).toEqual('FileAction'); expect(actions[0].disabled).toBe(true); - - }); + }); it('should not display hidden content actions', () => { documentList.actions = [ @@ -421,8 +419,7 @@ describe('DocumentList', () => { expect(actions.length).toBe(1); expect(actions[0].title).toEqual('FileAction'); expect(actions[0].disabled).toBeFalsy(); - - }); + }); it('should disable the action if there is no permission for the folder and disableWithNoPermission true', () => { const documentMenu = new ContentActionModel({ @@ -442,8 +439,7 @@ describe('DocumentList', () => { expect(actions.length).toBe(1); expect(actions[0].title).toEqual('FolderAction'); expect(actions[0].disabled).toBe(true); - - }); + }); it('should not disable the action if there is the right permission for the file', () => { const documentMenu = new ContentActionModel({ @@ -707,8 +703,7 @@ describe('DocumentList', () => { documentList.onNodeClick(null); expect(documentList.loadFolder).not.toHaveBeenCalled(); - - }); + }); it('should display folder content only on folder node click', () => { expect(documentList.navigate).toBe(true); diff --git a/lib/content-services/src/lib/document-list/data/share-datatable-adapter.spec.ts b/lib/content-services/src/lib/document-list/data/share-datatable-adapter.spec.ts index 61e13c3387..b427ca578b 100644 --- a/lib/content-services/src/lib/document-list/data/share-datatable-adapter.spec.ts +++ b/lib/content-services/src/lib/document-list/data/share-datatable-adapter.spec.ts @@ -518,7 +518,5 @@ describe('ShareDataTableAdapter', () => { expect(row.isDropTarget).toBeFalsy(); }); - - }); - + }); }); diff --git a/lib/content-services/src/lib/document-list/services/document-actions.service.spec.ts b/lib/content-services/src/lib/document-list/services/document-actions.service.spec.ts index dcb08e3532..3a082a04f1 100644 --- a/lib/content-services/src/lib/document-list/services/document-actions.service.spec.ts +++ b/lib/content-services/src/lib/document-list/services/document-actions.service.spec.ts @@ -117,8 +117,7 @@ describe('DocumentActionsService', () => { const file = new FileNode(); service.getHandler('delete')(file); - - }); + }); it('should call the error on the returned Observable if there are no permissions', (done) => { spyOn(documentListService, 'deleteNode').and.returnValue(of(true)); @@ -230,6 +229,5 @@ describe('DocumentActionsService', () => { const fileWithPermission: any = file; fileWithPermission.entry.allowableOperations = [permission]; service.getHandler('delete')(fileWithPermission, target, permission); - - }); + }); }); diff --git a/lib/content-services/src/lib/document-list/services/folder-actions.service.spec.ts b/lib/content-services/src/lib/document-list/services/folder-actions.service.spec.ts index 82d91aab55..8313b5acba 100644 --- a/lib/content-services/src/lib/document-list/services/folder-actions.service.spec.ts +++ b/lib/content-services/src/lib/document-list/services/folder-actions.service.spec.ts @@ -103,8 +103,7 @@ describe('FolderActionsService', () => { const folder = new FolderNode(); service.getHandler('delete')(folder); - - }); + }); it('should delete the folder node if there is the delete permission', () => { spyOn(documentListService, 'deleteNode').and.callFake(() => { @@ -164,8 +163,7 @@ describe('FolderActionsService', () => { done(); } }); - - }); + }); it('should delete the folder node if there is the delete and others permission ', () => { spyOn(documentListService, 'deleteNode').and.callFake(() => { diff --git a/lib/content-services/src/lib/document-list/services/node-actions.service.spec.ts b/lib/content-services/src/lib/document-list/services/node-actions.service.spec.ts index 3daeb992b8..642be455e2 100644 --- a/lib/content-services/src/lib/document-list/services/node-actions.service.spec.ts +++ b/lib/content-services/src/lib/document-list/services/node-actions.service.spec.ts @@ -109,5 +109,4 @@ describe('NodeActionsService', () => { expect(error).toBe('FAKE-KO'); }); })); - }); diff --git a/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission-panel.component.spec.ts b/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission-panel.component.spec.ts index bb8dd0b50a..b8aad030ed 100644 --- a/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission-panel.component.spec.ts +++ b/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission-panel.component.spec.ts @@ -204,5 +204,4 @@ describe('AddPermissionPanelComponent', () => { expect(element.querySelector('#result_option_0 .mat-list-text').innerHTML).not.toEqual(element.querySelector('#result_option_1 .mat-list-text').innerHTML); }); })); - }); diff --git a/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission.component.spec.ts b/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission.component.spec.ts index 14da20323b..10c4c37cc6 100644 --- a/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission.component.spec.ts +++ b/lib/content-services/src/lib/permission-manager/components/add-permission/add-permission.component.spec.ts @@ -125,5 +125,4 @@ describe('AddPermissionComponent', () => { addButton.click(); }); }); - }); diff --git a/lib/content-services/src/lib/permission-manager/components/inherited-button.directive.spec.ts b/lib/content-services/src/lib/permission-manager/components/inherited-button.directive.spec.ts index db2c447f77..d5fdb8d951 100644 --- a/lib/content-services/src/lib/permission-manager/components/inherited-button.directive.spec.ts +++ b/lib/content-services/src/lib/permission-manager/components/inherited-button.directive.spec.ts @@ -110,5 +110,4 @@ describe('InheritPermissionDirective', () => { expect(spyUpdateNode).not.toHaveBeenCalled(); }); })); - }); diff --git a/lib/content-services/src/lib/permission-manager/components/permission-list/permission-list.component.spec.ts b/lib/content-services/src/lib/permission-manager/components/permission-list/permission-list.component.spec.ts index 322e6cc664..d9057698fe 100644 --- a/lib/content-services/src/lib/permission-manager/components/permission-list/permission-list.component.spec.ts +++ b/lib/content-services/src/lib/permission-manager/components/permission-list/permission-list.component.spec.ts @@ -187,7 +187,5 @@ describe('PermissionDisplayComponent', () => { }); }); })); - - }); - + }); }); diff --git a/lib/content-services/src/lib/permission-manager/services/node-permission-dialog.service.spec.ts b/lib/content-services/src/lib/permission-manager/services/node-permission-dialog.service.spec.ts index fe53eb1338..361eda90b7 100644 --- a/lib/content-services/src/lib/permission-manager/services/node-permission-dialog.service.spec.ts +++ b/lib/content-services/src/lib/permission-manager/services/node-permission-dialog.service.spec.ts @@ -117,6 +117,5 @@ describe('NodePermissionDialogService', () => { done(); }); }); - - }); + }); }); diff --git a/lib/content-services/src/lib/permission-manager/services/node-permission.service.spec.ts b/lib/content-services/src/lib/permission-manager/services/node-permission.service.spec.ts index 7a31371b1e..c1bf607c66 100644 --- a/lib/content-services/src/lib/permission-manager/services/node-permission.service.spec.ts +++ b/lib/content-services/src/lib/permission-manager/services/node-permission.service.spec.ts @@ -193,5 +193,4 @@ describe('NodePermissionService', () => { expect(errorMessage).toBe('PERMISSION_MANAGER.ERROR.DUPLICATE-PERMISSION'); }); })); - }); diff --git a/lib/content-services/src/lib/search/components/search-check-list/search-check-list.component.spec.ts b/lib/content-services/src/lib/search/components/search-check-list/search-check-list.component.spec.ts index 794ecd0e11..b84c658c9c 100644 --- a/lib/content-services/src/lib/search/components/search-check-list/search-check-list.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-check-list/search-check-list.component.spec.ts @@ -115,5 +115,4 @@ describe('SearchCheckListComponent', () => { expect(component.context.update).toHaveBeenCalled(); expect(component.context.queryFragments[component.id]).toBe(''); }); - }); diff --git a/lib/content-services/src/lib/search/components/search-chip-list/search-chip-list.component.spec.ts b/lib/content-services/src/lib/search/components/search-chip-list/search-chip-list.component.spec.ts index a75030c8b7..c1e4ffb6c1 100644 --- a/lib/content-services/src/lib/search/components/search-chip-list/search-chip-list.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-chip-list/search-chip-list.component.spec.ts @@ -66,5 +66,4 @@ describe('SearchChipListComponent', () => { expect(component.searchFilter.unselectFacetBucket).toHaveBeenCalledWith(selectedBucket1.field, selectedBucket1.bucket); }); - }); diff --git a/lib/content-services/src/lib/search/components/search-control.component.spec.ts b/lib/content-services/src/lib/search/components/search-control.component.spec.ts index f73f4ac831..0a71ff26e0 100644 --- a/lib/content-services/src/lib/search/components/search-control.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-control.component.spec.ts @@ -168,8 +168,7 @@ describe('SearchControlComponent', () => { const attr = element.querySelector('#adf-control-input').getAttribute('autocomplete'); expect(attr).toBe('off'); })); - - }); + }); describe('autocomplete list', () => { @@ -336,8 +335,7 @@ describe('SearchControlComponent', () => { done(); }); }); - - }); + }); describe('option click', () => { diff --git a/lib/content-services/src/lib/search/components/search-date-range/search-date-range.component.spec.ts b/lib/content-services/src/lib/search/components/search-date-range/search-date-range.component.spec.ts index cde90e28c3..a345025f3a 100644 --- a/lib/content-services/src/lib/search/components/search-date-range/search-date-range.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-date-range/search-date-range.component.spec.ts @@ -151,5 +151,4 @@ describe('SearchDateRangeComponent', () => { expect(context.update).toHaveBeenCalled(); }); }); - }); diff --git a/lib/content-services/src/lib/search/components/search-filter/models/search-filter-list.model.spec.ts b/lib/content-services/src/lib/search/components/search-filter/models/search-filter-list.model.spec.ts index ba97f4f4f0..7b4de9fd91 100644 --- a/lib/content-services/src/lib/search/components/search-filter/models/search-filter-list.model.spec.ts +++ b/lib/content-services/src/lib/search/components/search-filter/models/search-filter-list.model.spec.ts @@ -196,5 +196,4 @@ describe('SearchFilterList', () => { expect(list.filterText).toBe(''); }); - }); diff --git a/lib/content-services/src/lib/search/components/search-slider/search-slider.component.spec.ts b/lib/content-services/src/lib/search/components/search-slider/search-slider.component.spec.ts index 77dc466348..b89aad0559 100644 --- a/lib/content-services/src/lib/search/components/search-slider/search-slider.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-slider/search-slider.component.spec.ts @@ -127,5 +127,4 @@ describe('SearchSliderComponent', () => { expect(context.queryFragments['slider']).toBe(''); expect(context.update).toHaveBeenCalled(); }); - }); diff --git a/lib/content-services/src/lib/search/components/search-text/search-text.component.spec.ts b/lib/content-services/src/lib/search/components/search-text/search-text.component.spec.ts index 61d374211f..acb055a6b7 100644 --- a/lib/content-services/src/lib/search/components/search-text/search-text.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-text/search-text.component.spec.ts @@ -84,5 +84,4 @@ describe('SearchTextComponent', () => { expect(component.value).toBe(''); expect(component.context.queryFragments[component.id]).toBe(''); }); - }); diff --git a/lib/content-services/src/lib/search/forms/search-term-validator.spec.ts b/lib/content-services/src/lib/search/forms/search-term-validator.spec.ts index e7ae0920fc..0d9b634fcd 100644 --- a/lib/content-services/src/lib/search/forms/search-term-validator.spec.ts +++ b/lib/content-services/src/lib/search/forms/search-term-validator.spec.ts @@ -40,5 +40,4 @@ describe('Search term validator', () => { const control = new FormControl('a ._-?b', SearchTermValidator.minAlphanumericChars(3)); expect(control.valid).toBe(false); }); - }); diff --git a/lib/content-services/src/lib/search/search-query-builder.service.spec.ts b/lib/content-services/src/lib/search/search-query-builder.service.spec.ts index 73bb9f349b..ad63444bee 100644 --- a/lib/content-services/src/lib/search/search-query-builder.service.spec.ts +++ b/lib/content-services/src/lib/search/search-query-builder.service.spec.ts @@ -475,8 +475,7 @@ describe('SearchQueryBuilder', () => { expect(compiled.facetIntervals.intervals[1].label).toEqual(noSpacesLabel.configValue); expect(compiled.facetIntervals.intervals[0].sets[0].label).toEqual(spacesLabelForSet.requestCompatibleValue); - - }); + }); it('should build query with sorting', () => { const config: SearchConfiguration = { @@ -619,5 +618,4 @@ describe('SearchQueryBuilder', () => { builder.execute(); }); - }); diff --git a/lib/content-services/src/lib/tag/services/tag.service.spec.ts b/lib/content-services/src/lib/tag/services/tag.service.spec.ts index e83ef290e8..54932f96d5 100644 --- a/lib/content-services/src/lib/tag/services/tag.service.spec.ts +++ b/lib/content-services/src/lib/tag/services/tag.service.spec.ts @@ -79,5 +79,4 @@ describe('TagService', () => { }); }); }); - }); diff --git a/lib/content-services/src/lib/tree-view/services/tree-view.service.spec.ts b/lib/content-services/src/lib/tree-view/services/tree-view.service.spec.ts index 863f93f636..a85d70ac04 100644 --- a/lib/content-services/src/lib/tree-view/services/tree-view.service.spec.ts +++ b/lib/content-services/src/lib/tree-view/services/tree-view.service.spec.ts @@ -64,5 +64,4 @@ describe('TreeViewService', () => { done(); }); }); - }); diff --git a/lib/content-services/src/lib/upload/components/base-upload/upload-base.spec.ts b/lib/content-services/src/lib/upload/components/base-upload/upload-base.spec.ts index cbd0f648ab..22de853463 100644 --- a/lib/content-services/src/lib/upload/components/base-upload/upload-base.spec.ts +++ b/lib/content-services/src/lib/upload/components/base-upload/upload-base.spec.ts @@ -145,8 +145,7 @@ describe('UploadBase', () => { done(); }); })); - - }); + }); describe('fileSize', () => { diff --git a/lib/content-services/src/lib/version-manager/version-list.component.spec.ts b/lib/content-services/src/lib/version-manager/version-list.component.spec.ts index 2066ec17e2..778583cad2 100644 --- a/lib/content-services/src/lib/version-manager/version-list.component.spec.ts +++ b/lib/content-services/src/lib/version-manager/version-list.component.spec.ts @@ -251,8 +251,7 @@ describe('VersionListComponent', () => { component.downloadVersion('1.0'); expect(spyOnDownload).not.toHaveBeenCalled(); }); - - }); + }); describe('Version restoring', () => { @@ -489,5 +488,4 @@ describe('VersionListComponent', () => { }); }); }); - }); diff --git a/lib/content-services/src/lib/version-manager/version-manager.component.spec.ts b/lib/content-services/src/lib/version-manager/version-manager.component.spec.ts index 1d25d7a64a..770969ee94 100644 --- a/lib/content-services/src/lib/version-manager/version-manager.component.spec.ts +++ b/lib/content-services/src/lib/version-manager/version-manager.component.spec.ts @@ -134,6 +134,5 @@ describe('VersionManagerComponent', () => { expect(component.uploadState).toEqual('open'); }); - - }); + }); }); diff --git a/lib/core/buttons-menu/buttons-menu.component.spec.ts b/lib/core/buttons-menu/buttons-menu.component.spec.ts index e4cafbd03b..4c8c843439 100644 --- a/lib/core/buttons-menu/buttons-menu.component.spec.ts +++ b/lib/core/buttons-menu/buttons-menu.component.spec.ts @@ -136,5 +136,4 @@ describe('ButtonsMenuComponent', () => { }); })); }); - }); diff --git a/lib/core/card-view/components/card-view-dateitem/card-view-dateitem.component.spec.ts b/lib/core/card-view/components/card-view-dateitem/card-view-dateitem.component.spec.ts index 46e8c8e11c..90b5cab867 100644 --- a/lib/core/card-view/components/card-view-dateitem/card-view-dateitem.component.spec.ts +++ b/lib/core/card-view/components/card-view-dateitem/card-view-dateitem.component.spec.ts @@ -303,5 +303,4 @@ describe('CardViewDateItemComponent', () => { fixture.whenStable().then(() => expect(component.property.value).toEqual(expectedDate.toDate())); }); })); - }); diff --git a/lib/core/card-view/components/card-view-keyvaluepairsitem/card-view-keyvaluepairsitem.component.spec.ts b/lib/core/card-view/components/card-view-keyvaluepairsitem/card-view-keyvaluepairsitem.component.spec.ts index 6326c98524..3653195c31 100644 --- a/lib/core/card-view/components/card-view-keyvaluepairsitem/card-view-keyvaluepairsitem.component.spec.ts +++ b/lib/core/card-view/components/card-view-keyvaluepairsitem/card-view-keyvaluepairsitem.component.spec.ts @@ -171,6 +171,5 @@ describe('CardViewKeyValuePairsItemComponent', () => { expect(cardViewUpdateService.update).not.toHaveBeenCalled(); }); })); - - }); + }); }); diff --git a/lib/core/card-view/components/card-view-mapitem/card-view-mapitem.component.spec.ts b/lib/core/card-view/components/card-view-mapitem/card-view-mapitem.component.spec.ts index 2abb3335a6..d5367ad77c 100644 --- a/lib/core/card-view/components/card-view-mapitem/card-view-mapitem.component.spec.ts +++ b/lib/core/card-view/components/card-view-mapitem/card-view-mapitem.component.spec.ts @@ -129,5 +129,4 @@ describe('CardViewMapItemComponent', () => { value.click(); }); - }); diff --git a/lib/core/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts b/lib/core/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts index 69ecd50437..cbae86ccf0 100644 --- a/lib/core/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts +++ b/lib/core/card-view/components/card-view-selectitem/card-view-selectitem.component.spec.ts @@ -92,6 +92,5 @@ describe('CardViewSelectItemComponent', () => { const label = fixture.debugElement.query(By.css('[data-automation-class="select-box"] .mat-form-field-label')); expect(label).toBeNull(); }); - - }); + }); }); diff --git a/lib/core/comments/comments.component.spec.ts b/lib/core/comments/comments.component.spec.ts index 229b819cf2..204d98fcb2 100644 --- a/lib/core/comments/comments.component.spec.ts +++ b/lib/core/comments/comments.component.spec.ts @@ -295,8 +295,7 @@ describe('CommentsComponent', () => { component.add(); expect(emitSpy).toHaveBeenCalled(); }); - - }); + }); describe('Add comment node', () => { @@ -383,7 +382,5 @@ describe('CommentsComponent', () => { component.add(); expect(emitSpy).toHaveBeenCalled(); }); - - }); - + }); }); diff --git a/lib/core/data-column/data-column-list.component.spec.ts b/lib/core/data-column/data-column-list.component.spec.ts index e9894790fd..53e3ad48eb 100644 --- a/lib/core/data-column/data-column-list.component.spec.ts +++ b/lib/core/data-column/data-column-list.component.spec.ts @@ -31,5 +31,4 @@ describe('DataColumnListComponent', () => { const component = fixture.debugElement.componentInstance; expect(component).toBeTruthy(); }); - }); diff --git a/lib/core/data-column/data-column.component.spec.ts b/lib/core/data-column/data-column.component.spec.ts index dc3319dd9c..f4ad5fc1a1 100644 --- a/lib/core/data-column/data-column.component.spec.ts +++ b/lib/core/data-column/data-column.component.spec.ts @@ -39,5 +39,4 @@ describe('DataColumnListComponent', () => { component.ngOnInit(); expect(component.srTitle).toBeTruthy(); }); - }); diff --git a/lib/core/datatable/components/datatable/datatable.component.spec.ts b/lib/core/datatable/components/datatable/datatable.component.spec.ts index 49ca898008..305bb71bbd 100644 --- a/lib/core/datatable/components/datatable/datatable.component.spec.ts +++ b/lib/core/datatable/components/datatable/datatable.component.spec.ts @@ -634,8 +634,7 @@ describe('DataTable', () => { dataTable.onRowClick(row, null); } , 240); - - }); + }); it('should emit double click if there are more than two single click in 250ms', (done) => { @@ -655,8 +654,7 @@ describe('DataTable', () => { dataTable.onRowClick(row, null); } , 240); - - }); + }); it('should emit single click if there are two single click in more than 250ms', (done) => { @@ -803,8 +801,7 @@ describe('DataTable', () => { direction: 'asc' }) ); - - }); + }); it('should indicate column that has sorting applied', () => { dataTable.data = new ObjectDataTableAdapter( diff --git a/lib/core/datatable/components/datatable/location-cell.component.spec.ts b/lib/core/datatable/components/datatable/location-cell.component.spec.ts index 71f6d05afd..2116ff218b 100644 --- a/lib/core/datatable/components/datatable/location-cell.component.spec.ts +++ b/lib/core/datatable/components/datatable/location-cell.component.spec.ts @@ -92,8 +92,7 @@ describe('LocationCellComponent', () => { expect(value).toBe(''); done(); }); - - }); + }); it('should not setup cell when path is missing required properties', (done) => { rowData.path = { someProp: '' }; diff --git a/lib/core/datatable/data/object-datatable-adapter.spec.ts b/lib/core/datatable/data/object-datatable-adapter.spec.ts index b9c9784a67..0f31d6765e 100644 --- a/lib/core/datatable/data/object-datatable-adapter.spec.ts +++ b/lib/core/datatable/data/object-datatable-adapter.spec.ts @@ -295,7 +295,6 @@ describe('ObjectDataTableAdapter', () => { }) ); }); - }); describe('ObjectDataRow', () => { @@ -364,5 +363,4 @@ describe('ObjectDataRow', () => { expect(schema[0].title).toBe('id'); expect(schema[1].title).toBe('name'); }); - }); diff --git a/lib/core/directives/logout.directive.spec.ts b/lib/core/directives/logout.directive.spec.ts index 703f381eed..5b6d779b1c 100644 --- a/lib/core/directives/logout.directive.spec.ts +++ b/lib/core/directives/logout.directive.spec.ts @@ -80,8 +80,7 @@ describe('LogoutDirective', () => { expect(authService.logout).toHaveBeenCalled(); expect(router.navigate).toHaveBeenCalledWith(['/login']); }); - - }); + }); describe('redirectUri', () => { @@ -125,8 +124,7 @@ describe('LogoutDirective', () => { expect(authService.logout).toHaveBeenCalled(); expect(router.navigate).toHaveBeenCalledWith(['/myCustomUri']); }); - - }); + }); describe('enableRedirect', () => { @@ -170,5 +168,4 @@ describe('LogoutDirective', () => { expect(router.navigate).not.toHaveBeenCalled(); }); }); - }); diff --git a/lib/core/directives/node-delete.directive.spec.ts b/lib/core/directives/node-delete.directive.spec.ts index e289cc8851..fa74d9c995 100644 --- a/lib/core/directives/node-delete.directive.spec.ts +++ b/lib/core/directives/node-delete.directive.spec.ts @@ -387,5 +387,4 @@ describe('NodeDeleteDirective', () => { }); }); - }); diff --git a/lib/core/directives/node-restore.directive.spec.ts b/lib/core/directives/node-restore.directive.spec.ts index 40b1d463a9..d3dc51a4ee 100644 --- a/lib/core/directives/node-restore.directive.spec.ts +++ b/lib/core/directives/node-restore.directive.spec.ts @@ -276,6 +276,5 @@ describe('NodeRestoreDirective', () => { element.triggerEventHandler('click', null); }); - - }); + }); }); diff --git a/lib/core/form/components/form-field/form-field.component.spec.ts b/lib/core/form/components/form-field/form-field.component.spec.ts index 586a230970..124f242d9c 100644 --- a/lib/core/form/components/form-field/form-field.component.spec.ts +++ b/lib/core/form/components/form-field/form-field.component.spec.ts @@ -144,5 +144,4 @@ describe('FormFieldComponent', () => { fixture.detectChanges(); expect(fixture.nativeElement.querySelector('#field-FAKE-TXT-WIDGET-container').hidden).toBeTruthy(); }); - }); diff --git a/lib/core/form/components/form-list.component.spec.ts b/lib/core/form/components/form-list.component.spec.ts index 5c899c5e26..e493516b74 100644 --- a/lib/core/form/components/form-list.component.spec.ts +++ b/lib/core/form/components/form-list.component.spec.ts @@ -63,5 +63,4 @@ describe('TaskAttachmentList', () => { expect(element.querySelectorAll('.adf-datatable-body > .adf-datatable-row').length).toBe(2); }); })); - }); diff --git a/lib/core/form/components/widgets/amount/amount.widget.spec.ts b/lib/core/form/components/widgets/amount/amount.widget.spec.ts index 0e37492012..12fce28517 100644 --- a/lib/core/form/components/widgets/amount/amount.widget.spec.ts +++ b/lib/core/form/components/widgets/amount/amount.widget.spec.ts @@ -75,7 +75,6 @@ describe('AmountWidgetComponent', () => { widget.ngOnInit(); expect(widget.placeholder).toBe('1234'); }); - }); describe('AmountWidgetComponent settings', () => { diff --git a/lib/core/form/components/widgets/checkbox/checkbox.widget.spec.ts b/lib/core/form/components/widgets/checkbox/checkbox.widget.spec.ts index 970c435751..050f66680a 100644 --- a/lib/core/form/components/widgets/checkbox/checkbox.widget.spec.ts +++ b/lib/core/form/components/widgets/checkbox/checkbox.widget.spec.ts @@ -70,6 +70,5 @@ describe('CheckboxWidgetComponent', () => { expect(element.querySelector('.adf-invalid')).not.toBeNull(); }); })); - - }); + }); }); diff --git a/lib/core/form/components/widgets/container/container-column.model.spec.ts b/lib/core/form/components/widgets/container/container-column.model.spec.ts index 0dff52ef7d..df73bbf2e3 100644 --- a/lib/core/form/components/widgets/container/container-column.model.spec.ts +++ b/lib/core/form/components/widgets/container/container-column.model.spec.ts @@ -38,5 +38,4 @@ describe('ContainerColumnModel', () => { column.fields = [new FormFieldModel(new FormModel(), null)]; expect(column.hasFields()).toBeTruthy(); }); - }); diff --git a/lib/core/form/components/widgets/container/container.widget.model.spec.ts b/lib/core/form/components/widgets/container/container.widget.model.spec.ts index 0ed357cd21..48967701cc 100644 --- a/lib/core/form/components/widgets/container/container.widget.model.spec.ts +++ b/lib/core/form/components/widgets/container/container.widget.model.spec.ts @@ -73,5 +73,4 @@ describe('ContainerWidgetComponentModel', () => { })); expect(container.isCollapsedByDefault()).toBeTruthy(); }); - }); diff --git a/lib/core/form/components/widgets/core/container.model.spec.ts b/lib/core/form/components/widgets/core/container.model.spec.ts index c5c0d37d24..6d7a0138f6 100644 --- a/lib/core/form/components/widgets/core/container.model.spec.ts +++ b/lib/core/form/components/widgets/core/container.model.spec.ts @@ -26,5 +26,4 @@ describe('ContainerModel', () => { const model = new ContainerModel(new FormFieldModel(form)); expect(model.form).toBe(form); }); - }); diff --git a/lib/core/form/components/widgets/core/form-field-validator.spec.ts b/lib/core/form/components/widgets/core/form-field-validator.spec.ts index c18ce84f8f..3fa6815a43 100644 --- a/lib/core/form/components/widgets/core/form-field-validator.spec.ts +++ b/lib/core/form/components/widgets/core/form-field-validator.spec.ts @@ -197,8 +197,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); }); - - }); + }); describe('NumberFieldValidator', () => { @@ -262,8 +261,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); describe('MinLengthFieldValidator', () => { @@ -315,8 +313,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); describe('MaxLengthFieldValidator', () => { @@ -439,8 +436,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); describe('MaxValueFieldValidator', () => { @@ -511,8 +507,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); describe('RegExFieldValidator', () => { @@ -561,8 +556,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); }); - - }); + }); describe('FixedValueFieldValidator', () => { @@ -614,8 +608,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); }); - - }); + }); describe('MaxDateTimeFieldValidator', () => { @@ -741,8 +734,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); describe('MinDateTimeFieldValidator', () => { @@ -868,8 +860,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); describe('MaxDateFieldValidator', () => { @@ -962,8 +953,7 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); describe('MinDateFieldValidator', () => { @@ -1056,6 +1046,5 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeFalsy(); expect(field.validationSummary).not.toBeNull(); }); - - }); + }); }); diff --git a/lib/core/form/components/widgets/core/form-outcome.model.spec.ts b/lib/core/form/components/widgets/core/form-outcome.model.spec.ts index 4bcde60ba7..6ccc497661 100644 --- a/lib/core/form/components/widgets/core/form-outcome.model.spec.ts +++ b/lib/core/form/components/widgets/core/form-outcome.model.spec.ts @@ -41,5 +41,4 @@ describe('FormOutcomeModel', () => { const model = new FormOutcomeModel(null, json); expect(model.json).toBe(json); }); - }); diff --git a/lib/core/form/components/widgets/core/form-widget.model.spec.ts b/lib/core/form/components/widgets/core/form-widget.model.spec.ts index 293ae59b9d..e7cc41f6d3 100644 --- a/lib/core/form/components/widgets/core/form-widget.model.spec.ts +++ b/lib/core/form/components/widgets/core/form-widget.model.spec.ts @@ -37,5 +37,4 @@ describe('FormWidgetModel', () => { const model = new FormWidgetModelMock(null, json); expect(model.json).toBe(json); }); - }); diff --git a/lib/core/form/components/widgets/core/tab.model.spec.ts b/lib/core/form/components/widgets/core/tab.model.spec.ts index f93f28a0eb..1f313b0964 100644 --- a/lib/core/form/components/widgets/core/tab.model.spec.ts +++ b/lib/core/form/components/widgets/core/tab.model.spec.ts @@ -70,5 +70,4 @@ describe('TabModel', () => { const model = new TabModel(null, json); expect(model.json).toBe(json); }); - }); diff --git a/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts b/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts index efcf0b386b..e0ee3558a1 100644 --- a/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/dynamic-table.widget.spec.ts @@ -308,8 +308,7 @@ describe('DynamicTableWidgetComponent', () => { expect(widget.content.field.validate()).toBeTruthy(); expect(widget.isValid()).toBe(widget.content.field.isValid); expect(widget.content.field.isValid).toBeTruthy(); - - }); + }); it('should prepend default currency for amount columns', () => { const row = {value: {key: '100'}}; diff --git a/lib/core/form/components/widgets/dynamic-table/editors/amount/amount.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/amount/amount.editor.spec.ts index 1fd0b59d81..c3c0342fbd 100644 --- a/lib/core/form/components/widgets/dynamic-table/editors/amount/amount.editor.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/editors/amount/amount.editor.spec.ts @@ -37,5 +37,4 @@ describe('AmountEditorComponent', () => { editor.onValueChanged(row, column, event); expect(row.value[column.id]).toBe(value); }); - }); diff --git a/lib/core/form/components/widgets/dynamic-table/editors/boolean/boolean.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/boolean/boolean.editor.spec.ts index 94281ab8ef..591bf405e1 100644 --- a/lib/core/form/components/widgets/dynamic-table/editors/boolean/boolean.editor.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/editors/boolean/boolean.editor.spec.ts @@ -36,5 +36,4 @@ describe('BooleanEditorComponent', () => { component.onValueChanged(row, column, event); expect(row.value[column.id]).toBeTruthy(); }); - }); diff --git a/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.spec.ts index 120d5a3949..4c92279e57 100644 --- a/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/editors/date/date.editor.spec.ts @@ -143,7 +143,5 @@ describe('DateEditorComponent', () => { const actual = row.value[column.id]; expect(actual).toBe(''); }); - - }); - + }); }); diff --git a/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.spec.ts index b6a4b6f184..3b7cf6e295 100644 --- a/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/editors/datetime/datetime.editor.spec.ts @@ -85,5 +85,4 @@ describe('DateTimeEditorComponent', () => { expect(table.flushValue).toHaveBeenCalled(); }); - }); diff --git a/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts index 07d6b9a23b..af082dafde 100644 --- a/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/editors/dropdown/dropdown.editor.spec.ts @@ -301,7 +301,5 @@ describe('DropdownEditorComponent', () => { })); }); - - }); - + }); }); diff --git a/lib/core/form/components/widgets/dynamic-table/editors/row.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/row.editor.spec.ts index 3b476d36db..d93291c09a 100644 --- a/lib/core/form/components/widgets/dynamic-table/editors/row.editor.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/editors/row.editor.spec.ts @@ -78,5 +78,4 @@ describe('RowEditorComponent', () => { component.onSaveChanges(); expect(raised).toBeFalsy(); }); - }); diff --git a/lib/core/form/components/widgets/dynamic-table/editors/text/text.editor.spec.ts b/lib/core/form/components/widgets/dynamic-table/editors/text/text.editor.spec.ts index 1b02fdbe5a..d106447e72 100644 --- a/lib/core/form/components/widgets/dynamic-table/editors/text/text.editor.spec.ts +++ b/lib/core/form/components/widgets/dynamic-table/editors/text/text.editor.spec.ts @@ -37,5 +37,4 @@ describe('TextEditorComponent', () => { editor.onValueChanged(row, column, event); expect(row.value[column.id]).toBe(value); }); - }); diff --git a/lib/core/form/components/widgets/people/people.widget.spec.ts b/lib/core/form/components/widgets/people/people.widget.spec.ts index 3d49bd7b9c..2712ad5f09 100644 --- a/lib/core/form/components/widgets/people/people.widget.spec.ts +++ b/lib/core/form/components/widgets/people/people.widget.spec.ts @@ -270,5 +270,4 @@ describe('PeopleWidgetComponent', () => { }); }); }); - }); diff --git a/lib/core/form/components/widgets/tabs/tabs.widget.spec.ts b/lib/core/form/components/widgets/tabs/tabs.widget.spec.ts index 97476e3b78..567d4baff2 100644 --- a/lib/core/form/components/widgets/tabs/tabs.widget.spec.ts +++ b/lib/core/form/components/widgets/tabs/tabs.widget.spec.ts @@ -156,6 +156,5 @@ describe('TabsWidgetComponent', () => { }); tabWidgetComponent.tabChanged(null); })); - - }); + }); }); diff --git a/lib/core/form/components/widgets/upload/upload.widget.spec.ts b/lib/core/form/components/widgets/upload/upload.widget.spec.ts index fa9b067d73..fb44e963f7 100644 --- a/lib/core/form/components/widgets/upload/upload.widget.spec.ts +++ b/lib/core/form/components/widgets/upload/upload.widget.spec.ts @@ -411,7 +411,5 @@ describe('UploadWidgetComponent', () => { }); }); - - }); - + }); }); diff --git a/lib/core/form/components/widgets/widget.component.spec.ts b/lib/core/form/components/widgets/widget.component.spec.ts index b55b63fc08..d0c3723147 100644 --- a/lib/core/form/components/widgets/widget.component.spec.ts +++ b/lib/core/form/components/widgets/widget.component.spec.ts @@ -54,8 +54,7 @@ describe('WidgetComponent', () => { element.click(); }); - - }); + }); it('should check field', () => { expect(widget.hasField()).toBeFalsy(); @@ -103,5 +102,4 @@ describe('WidgetComponent', () => { widget.field = new FormFieldModel(null, {required: true}); expect(widget.isRequired()).toBeTruthy(); }); - }); diff --git a/lib/core/form/services/form-rendering.service.spec.ts b/lib/core/form/services/form-rendering.service.spec.ts index fdcfc91820..1dd2c64c49 100644 --- a/lib/core/form/services/form-rendering.service.spec.ts +++ b/lib/core/form/services/form-rendering.service.spec.ts @@ -128,5 +128,4 @@ describe('FormRenderingService', () => { const type = resolver(null); expect(type).toBe(JsonWidgetComponent); }); - }); diff --git a/lib/core/form/services/form.service.spec.ts b/lib/core/form/services/form.service.spec.ts index 5bce67a941..9dcf3f4dee 100644 --- a/lib/core/form/services/form.service.spec.ts +++ b/lib/core/form/services/form.service.spec.ts @@ -461,6 +461,5 @@ describe('Form service', () => { }); } }); - - }); + }); }); diff --git a/lib/core/login/components/login-dialog-panel.component.spec.ts b/lib/core/login/components/login-dialog-panel.component.spec.ts index 9e8b2e062e..18e51aaec7 100644 --- a/lib/core/login/components/login-dialog-panel.component.spec.ts +++ b/lib/core/login/components/login-dialog-panel.component.spec.ts @@ -93,5 +93,4 @@ describe('LoginDialogPanelComponent', () => { fixture.detectChanges(); expect(component.isValid()).toBeTruthy(); }); - }); diff --git a/lib/core/login/components/login.component.spec.ts b/lib/core/login/components/login.component.spec.ts index b81e5c9e3b..c164030228 100644 --- a/lib/core/login/components/login.component.spec.ts +++ b/lib/core/login/components/login.component.spec.ts @@ -498,8 +498,7 @@ describe('LoginComponent', () => { loginWithCredentials('fake-username-ECM-access-error', 'fake-password'); })); - - }); + }); it('should trim the username value', () => { usernameInput.value = 'username '; @@ -541,8 +540,7 @@ describe('LoginComponent', () => { }); loginWithCredentials('fake-username', 'fake-password'); - - }); + }); it('should emit success event after the login has succeeded and discard password', async(() => { spyOn(authService, 'login').and.returnValue(of({ type: 'type', ticket: 'ticket' })); diff --git a/lib/core/notifications/services/notification.service.spec.ts b/lib/core/notifications/services/notification.service.spec.ts index 5ce6f415e9..70d1b8df25 100644 --- a/lib/core/notifications/services/notification.service.spec.ts +++ b/lib/core/notifications/services/notification.service.spec.ts @@ -189,5 +189,4 @@ describe('NotificationService', () => { expect(document.querySelector('snack-bar-container')).not.toBeNull(); }); - }); diff --git a/lib/core/pipes/file-size.pipe.spec.ts b/lib/core/pipes/file-size.pipe.spec.ts index 647190ef3b..ef8e4ddbf9 100644 --- a/lib/core/pipes/file-size.pipe.spec.ts +++ b/lib/core/pipes/file-size.pipe.spec.ts @@ -87,5 +87,4 @@ describe('FileSizePipe', () => { expect(pipe.transform(size, precision)).toBe(expectancy); }); }); - }); diff --git a/lib/core/pipes/file-type.pipe.spec.ts b/lib/core/pipes/file-type.pipe.spec.ts index c563f61a62..61a6078eb4 100644 --- a/lib/core/pipes/file-type.pipe.spec.ts +++ b/lib/core/pipes/file-type.pipe.spec.ts @@ -30,5 +30,4 @@ describe('FileTypePipe', () => { it('should return file type from alt text', () => { expect(pipe.transform(altText)).toBe('word'); }); - }); diff --git a/lib/core/pipes/multi-value.pipe.spec.ts b/lib/core/pipes/multi-value.pipe.spec.ts index acc3ce103c..883003c80a 100644 --- a/lib/core/pipes/multi-value.pipe.spec.ts +++ b/lib/core/pipes/multi-value.pipe.spec.ts @@ -30,8 +30,7 @@ describe('FullNamePipe', () => { beforeEach(() => { pipe = TestBed.get(MultiValuePipe); - - }); + }); it('should add the separator when a list is provided', () => { const values = ['cat', 'house', 'dog']; diff --git a/lib/core/services/auth-guard-ecm.service.spec.ts b/lib/core/services/auth-guard-ecm.service.spec.ts index ebd82bb627..77831fee1b 100644 --- a/lib/core/services/auth-guard-ecm.service.spec.ts +++ b/lib/core/services/auth-guard-ecm.service.spec.ts @@ -197,5 +197,4 @@ describe('AuthGuardService ECM', () => { expect(materialDialog.closeAll).toHaveBeenCalled(); }); - }); diff --git a/lib/core/services/auth-guard-sso-role.service.spec.ts b/lib/core/services/auth-guard-sso-role.service.spec.ts index ab0acc0e43..c8f1291990 100644 --- a/lib/core/services/auth-guard-sso-role.service.spec.ts +++ b/lib/core/services/auth-guard-sso-role.service.spec.ts @@ -181,5 +181,4 @@ describe('Auth Guard SSO role service', () => { expect(authGuard.canActivate(route)).toBeFalsy(); expect(materialDialog.closeAll).toHaveBeenCalled(); }); - }); diff --git a/lib/core/services/authentication.service.spec.ts b/lib/core/services/authentication.service.spec.ts index 172f718af1..774f7f96c4 100644 --- a/lib/core/services/authentication.service.spec.ts +++ b/lib/core/services/authentication.service.spec.ts @@ -501,5 +501,4 @@ describe('AuthenticationService', () => { expect(authService.isALLProvider()).toBe(true); }); }); - }); diff --git a/lib/core/services/comment-process.service.spec.ts b/lib/core/services/comment-process.service.spec.ts index ee38fbf6e7..c87f614a89 100644 --- a/lib/core/services/comment-process.service.spec.ts +++ b/lib/core/services/comment-process.service.spec.ts @@ -134,8 +134,7 @@ describe('Comment ProcessService Service', () => { })); }); - - }); + }); describe('Task comments', () => { diff --git a/lib/core/services/discovery-api.service.spec.ts b/lib/core/services/discovery-api.service.spec.ts index a11c2d460b..7c57d64897 100644 --- a/lib/core/services/discovery-api.service.spec.ts +++ b/lib/core/services/discovery-api.service.spec.ts @@ -173,5 +173,4 @@ describe('Discovery Api Service', () => { }); }); }); - }); diff --git a/lib/core/services/jwt-helper.service.spec.ts b/lib/core/services/jwt-helper.service.spec.ts index 2aa6d2548e..f9cbd61ce3 100644 --- a/lib/core/services/jwt-helper.service.spec.ts +++ b/lib/core/services/jwt-helper.service.spec.ts @@ -90,8 +90,7 @@ describe('JwtHelperService', () => { const result = jwtHelperService.hasRealmRoles(['role3', 'role2']); expect(result).toBeFalsy(); }); - - }); + }); describe('ClientRole ', () => { @@ -138,7 +137,5 @@ describe('JwtHelperService', () => { const result = jwtHelperService.hasRealmRolesForClientRole('fakeapp', ['role1', 'role2']); expect(result).toBeFalsy(); }); - - }); - + }); }); diff --git a/lib/core/services/lock.service.spec.ts b/lib/core/services/lock.service.spec.ts index f4f03946be..299c3e731b 100644 --- a/lib/core/services/lock.service.spec.ts +++ b/lib/core/services/lock.service.spec.ts @@ -163,6 +163,5 @@ describe('PeopleProcessService', () => { spyOn(apiService.getInstance(), 'getEcmUsername').and.returnValue('banana-user'); expect(service.isLocked(nodeOwnerAllowedLockWithActiveExpiration)).toBeTruthy(); }); - - }); + }); }); diff --git a/lib/core/services/login-dialog.service.spec.ts b/lib/core/services/login-dialog.service.spec.ts index 5d32a010e2..9ef014bb51 100644 --- a/lib/core/services/login-dialog.service.spec.ts +++ b/lib/core/services/login-dialog.service.spec.ts @@ -59,5 +59,4 @@ describe('LoginDialogService', () => { service.close(); expect(materialDialog.closeAll).toHaveBeenCalled(); }); - }); diff --git a/lib/core/services/sites.service.spec.ts b/lib/core/services/sites.service.spec.ts index e94a572b9f..bf6c686053 100644 --- a/lib/core/services/sites.service.spec.ts +++ b/lib/core/services/sites.service.spec.ts @@ -105,5 +105,4 @@ describe('Sites service', () => { } }); }); - }); diff --git a/lib/core/services/thumbnail.service.spec.ts b/lib/core/services/thumbnail.service.spec.ts index 29845c40cb..155ba36d11 100644 --- a/lib/core/services/thumbnail.service.spec.ts +++ b/lib/core/services/thumbnail.service.spec.ts @@ -55,5 +55,4 @@ describe('ThumbnailService', () => { spyOn(apiService.contentApi, 'getDocumentThumbnailUrl').and.returnValue('/fake-thumbnail.png'); expect(service.getDocumentThumbnailUrl('some-id')).toContain('/fake-thumbnail.png'); }); - }); diff --git a/lib/core/services/translate-loader.spec.ts b/lib/core/services/translate-loader.spec.ts index bfc1f6f63c..d4709baac9 100644 --- a/lib/core/services/translate-loader.spec.ts +++ b/lib/core/services/translate-loader.spec.ts @@ -54,5 +54,4 @@ describe('TranslateLoader', () => { customLoader.registerProvider('login', 'path/login'); expect(customLoader.providerRegistered('login')).toBeTruthy(); }); - }); diff --git a/lib/core/services/translation.service.spec.ts b/lib/core/services/translation.service.spec.ts index 4742ff28bc..38f6ef5a45 100644 --- a/lib/core/services/translation.service.spec.ts +++ b/lib/core/services/translation.service.spec.ts @@ -98,5 +98,4 @@ describe('TranslationService', () => { expect(translationService.instant('')).toEqual(''); expect(translationService.instant(undefined)).toEqual(''); }); - }); diff --git a/lib/core/settings/host-settings.component.spec.ts b/lib/core/settings/host-settings.component.spec.ts index 7e09a2f7e3..6ded5ec077 100644 --- a/lib/core/settings/host-settings.component.spec.ts +++ b/lib/core/settings/host-settings.component.spec.ts @@ -89,8 +89,7 @@ describe('HostSettingsComponent', () => { done(); }); }); - - }); + }); describe('BPM ', () => { @@ -143,8 +142,7 @@ describe('HostSettingsComponent', () => { expect(ecmUrlInput).toEqual(null); expect(bpmUrlInput).toBeDefined(); }); - - }); + }); describe('ECM ', () => { @@ -266,8 +264,7 @@ describe('HostSettingsComponent', () => { ecmUrlInput.value = url; bpmUrlInput.dispatchEvent(new Event('input')); }); - - }); + }); describe('OAUTH ', () => { @@ -383,7 +380,5 @@ describe('HostSettingsComponent', () => { clientIdInput.value = ''; clientIdInput.dispatchEvent(new Event('input')); }); - - }); - + }); }); diff --git a/lib/core/sorting-picker/sorting-picker.component.spec.ts b/lib/core/sorting-picker/sorting-picker.component.spec.ts index 35c7ab9d09..d2515ffa63 100644 --- a/lib/core/sorting-picker/sorting-picker.component.spec.ts +++ b/lib/core/sorting-picker/sorting-picker.component.spec.ts @@ -44,5 +44,4 @@ describe('SortingPickerComponent', () => { }); component.toggleSortDirection(); }); - }); diff --git a/lib/core/userinfo/components/user-info.component.spec.ts b/lib/core/userinfo/components/user-info.component.spec.ts index e87b92abd8..392f63780d 100644 --- a/lib/core/userinfo/components/user-info.component.spec.ts +++ b/lib/core/userinfo/components/user-info.component.spec.ts @@ -308,8 +308,7 @@ describe('User info component', () => { }); })); }); - - }); + }); describe('when user is logged on bpm', () => { diff --git a/lib/core/viewer/components/img-viewer.component.spec.ts b/lib/core/viewer/components/img-viewer.component.spec.ts index 453bc89453..03c4c3cf0a 100644 --- a/lib/core/viewer/components/img-viewer.component.spec.ts +++ b/lib/core/viewer/components/img-viewer.component.spec.ts @@ -350,7 +350,5 @@ describe('Test Img viewer component ', () => { }); }); }); - - }); - + }); }); diff --git a/lib/core/viewer/components/pdf-viewer-thumb.component.spec.ts b/lib/core/viewer/components/pdf-viewer-thumb.component.spec.ts index cb4ab0aaf0..6ce079770c 100644 --- a/lib/core/viewer/components/pdf-viewer-thumb.component.spec.ts +++ b/lib/core/viewer/components/pdf-viewer-thumb.component.spec.ts @@ -64,5 +64,4 @@ describe('PdfThumbComponent', () => { done(); }); }); - }); diff --git a/lib/core/viewer/components/pdf-viewer.component.spec.ts b/lib/core/viewer/components/pdf-viewer.component.spec.ts index 22c2c535de..43ee0585cb 100644 --- a/lib/core/viewer/components/pdf-viewer.component.spec.ts +++ b/lib/core/viewer/components/pdf-viewer.component.spec.ts @@ -186,8 +186,7 @@ describe('Test PdfViewer component', () => { component.ngOnChanges({ 'blobFile': change }); }).toThrow(new Error('Attribute urlFile or blobFile is required')); }); - - }); + }); describe('View with url file', () => { @@ -676,8 +675,7 @@ describe('Test PdfViewer component', () => { expect(componentUrlTestComponent.pdfViewerComponent.currentScaleMode).toBe('auto'); })); }); - - }); + }); describe('Zoom customization', () => { diff --git a/lib/core/viewer/components/txt-viewer.component.spec.ts b/lib/core/viewer/components/txt-viewer.component.spec.ts index 0cf052b2cf..72ff667b27 100644 --- a/lib/core/viewer/components/txt-viewer.component.spec.ts +++ b/lib/core/viewer/components/txt-viewer.component.spec.ts @@ -69,6 +69,5 @@ describe('Text View component', () => { }); }); }); - - }); + }); }); diff --git a/lib/core/viewer/components/viewer.component.spec.ts b/lib/core/viewer/components/viewer.component.spec.ts index 98f49aab44..edf32477e8 100644 --- a/lib/core/viewer/components/viewer.component.spec.ts +++ b/lib/core/viewer/components/viewer.component.spec.ts @@ -351,8 +351,7 @@ describe('ViewerComponent', () => { done(); }); }, 25000); - - }); + }); it('should change display name every time node changes', fakeAsync(() => { spyOn(alfrescoApiService.nodesApi, 'getNode').and.returnValues( @@ -919,8 +918,7 @@ describe('ViewerComponent', () => { }); }); }); - - }); + }); describe('Viewer component - Full Screen Mode - Mocking fixture element', () => { @@ -977,5 +975,4 @@ describe('ViewerComponent', () => { expect(domElement.msRequestFullscreen).toHaveBeenCalled(); }); }); - }); diff --git a/lib/extensions/src/lib/evaluators/core.evaluators.spec.ts b/lib/extensions/src/lib/evaluators/core.evaluators.spec.ts index 7b5a1b0ea2..af520dae64 100644 --- a/lib/extensions/src/lib/evaluators/core.evaluators.spec.ts +++ b/lib/extensions/src/lib/evaluators/core.evaluators.spec.ts @@ -233,5 +233,4 @@ describe('Core Evaluators', () => { expect(result).toBeTruthy(); }); }); - }); diff --git a/lib/insights/src/lib/analytics-process/components/analytics-report-heat-map.component.spec.ts b/lib/insights/src/lib/analytics-process/components/analytics-report-heat-map.component.spec.ts index 1f01bdc5b0..3023974f62 100644 --- a/lib/insights/src/lib/analytics-process/components/analytics-report-heat-map.component.spec.ts +++ b/lib/insights/src/lib/analytics-process/components/analytics-report-heat-map.component.spec.ts @@ -110,7 +110,5 @@ describe('AnalyticsReportHeatMapComponent', () => { expect(component.currentMetric).toEqual(avgTimeValues); expect(component.currentMetricColors).toEqual(avgTimePercentages); })); - - }); - + }); }); diff --git a/lib/insights/src/lib/analytics-process/components/analytics-report-list.component.spec.ts b/lib/insights/src/lib/analytics-process/components/analytics-report-list.component.spec.ts index 6a04941b80..19136c1e17 100644 --- a/lib/insights/src/lib/analytics-process/components/analytics-report-list.component.spec.ts +++ b/lib/insights/src/lib/analytics-process/components/analytics-report-list.component.spec.ts @@ -198,8 +198,7 @@ describe('AnalyticsReportListComponent', () => { responseText: reportList }); }); - - }); + }); describe('layout', () => { @@ -223,5 +222,4 @@ describe('AnalyticsReportListComponent', () => { expect(component.isList()).toBe(true); }); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.activities.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.activities.spec.ts index e289dd1ed2..074cdc30a8 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.activities.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.activities.spec.ts @@ -364,8 +364,7 @@ describe('Diagrams activities', () => { const resp = { elements: [diagramsActivitiesMock.businessRuleTask] }; ajaxReply(resp); })); - - }); + }); describe('Diagrams component Activities with process instance id: ', () => { @@ -1268,7 +1267,5 @@ describe('Diagrams activities', () => { const resp = { elements: [diagramsActivitiesMock.businessRuleTaskCompleted] }; ajaxReply(resp); })); - - }); - + }); }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.boundary.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.boundary.spec.ts index 8752536602..0f06caef1e 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.boundary.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.boundary.spec.ts @@ -687,5 +687,4 @@ describe('Diagrams boundary', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.catching.events.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.catching.events.spec.ts index 788793b3bd..588dd8ca0e 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.catching.events.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.catching.events.spec.ts @@ -563,5 +563,4 @@ describe('Diagrams Catching', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.events.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.events.spec.ts index 93ecbd7063..8e8f8d0940 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.events.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.events.spec.ts @@ -627,5 +627,4 @@ describe('Diagrams events', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.flows.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.flows.spec.ts index cb8b5c01c0..187ca8523c 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.flows.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.flows.spec.ts @@ -103,5 +103,4 @@ describe('Diagrams flows', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.gateways.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.gateways.spec.ts index b5316d2561..a3aa793458 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.gateways.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.gateways.spec.ts @@ -443,5 +443,4 @@ describe('Diagrams gateways', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.structural.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.structural.spec.ts index e5fac958d3..e97936fd64 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.structural.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.structural.spec.ts @@ -211,5 +211,4 @@ describe('Diagrams structural', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.swim.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.swim.spec.ts index ccb7d0080b..7812e03dd8 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.swim.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.swim.spec.ts @@ -145,5 +145,4 @@ describe('Diagrams swim', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/insights/src/lib/diagram/components/diagram.component.throw.spec.ts b/lib/insights/src/lib/diagram/components/diagram.component.throw.spec.ts index a31d75099b..145749e6ae 100644 --- a/lib/insights/src/lib/diagram/components/diagram.component.throw.spec.ts +++ b/lib/insights/src/lib/diagram/components/diagram.component.throw.spec.ts @@ -670,5 +670,4 @@ describe('Diagrams throw', () => { ajaxReply(resp); })); }); - }); diff --git a/lib/process-services-cloud/src/lib/app/components/app-details-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/app/components/app-details-cloud.component.spec.ts index 32d06e37c6..1ad1fb6ac3 100644 --- a/lib/process-services-cloud/src/lib/app/components/app-details-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/app/components/app-details-cloud.component.spec.ts @@ -73,6 +73,5 @@ describe('AppDetailsCloudComponent', () => { fixture.detectChanges(); const app = fixture.nativeElement.querySelector('.mat-card'); expect(app).toBeTruthy(); - - }); + }); }); diff --git a/lib/process-services-cloud/src/lib/app/components/app-list-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/app/components/app-list-cloud.component.spec.ts index 86ba05eb78..80c067b90e 100644 --- a/lib/process-services-cloud/src/lib/app/components/app-list-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/app/components/app-list-cloud.component.spec.ts @@ -116,8 +116,7 @@ describe('AppListCloudComponent', () => { expect(errorSubtitle.innerText).toBe('ADF_CLOUD_TASK_LIST.APPS.ERROR.SUBTITLE'); expect(getAppsSpy).toHaveBeenCalled(); }); - - }); + }); describe('Grid Layout ', () => { diff --git a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.spec.ts index 5b9e2dd43d..c9f36d0551 100644 --- a/lib/process-services-cloud/src/lib/form/components/form-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/form/components/form-cloud.component.spec.ts @@ -54,8 +54,7 @@ describe('FormCloudComponent', () => { formCloudService = new FormCloudService(null, new AppConfigService(null)); formService = new FormService(null, null, logService); formComponent = new FormCloudComponent(formCloudService, formService, null, formRenderingService, visibilityService, appConfigService); - - }); + }); it('should check form', () => { expect(formComponent.hasForm()).toBeFalsy(); @@ -69,8 +68,7 @@ describe('FormCloudComponent', () => { expect(formComponent.showTitle).toBeTruthy(); expect(formComponent.isTitleEnabled()).toBeTruthy(); - - }); + }); it('should not allow title if showTitle is false', () => { const formModel = new FormModel(); @@ -812,8 +810,7 @@ describe('FormCloudComponent', () => { }); formComponent.ngOnChanges({ 'data': change }); - - }); + }); it('should refresh radio buttons value when id is given to data', () => { formComponent.form = new FormModel(JSON.parse(JSON.stringify(cloudFormMock))); diff --git a/lib/process-services-cloud/src/lib/form/services/form-cloud.service.spec.ts b/lib/process-services-cloud/src/lib/form/services/form-cloud.service.spec.ts index b36be6199e..ad663a007b 100644 --- a/lib/process-services-cloud/src/lib/form/services/form-cloud.service.spec.ts +++ b/lib/process-services-cloud/src/lib/form/services/form-cloud.service.spec.ts @@ -222,6 +222,5 @@ describe('Form Cloud service', () => { done(); }); }); - - }); + }); }); diff --git a/lib/process-services-cloud/src/lib/group/components/group-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/group/components/group-cloud.component.spec.ts index 4e5218bc01..8ec7035988 100644 --- a/lib/process-services-cloud/src/lib/group/components/group-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/group/components/group-cloud.component.spec.ts @@ -533,8 +533,7 @@ describe('GroupCloudComponent', () => { done(); }); }); - - }); + }); describe('Multiple Mode with read-only', () => { diff --git a/lib/process-services-cloud/src/lib/people/components/people-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/people/components/people-cloud.component.spec.ts index 43d67a154c..ac1e44f945 100644 --- a/lib/process-services-cloud/src/lib/people/components/people-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/people/components/people-cloud.component.spec.ts @@ -750,5 +750,4 @@ describe('PeopleCloudComponent', () => { const duplicatedUsers = [{ id: mockUsers[0].id }, { id: mockUsers[0].id }]; expect(component.removeDuplicatedUsers(duplicatedUsers)).toEqual([{ id: mockUsers[0].id }]); }); - }); diff --git a/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.spec.ts b/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.spec.ts index 1862a8d46c..178cc615b8 100644 --- a/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.spec.ts +++ b/lib/process-services-cloud/src/lib/process/directives/cancel-process.directive.spec.ts @@ -80,5 +80,4 @@ describe('CancelProcessDirective', () => { fixture.detectChanges(); expect(component.cancelProcessDirective.checkCanCancelProcess()).toBeFalsy(); }); - }); diff --git a/lib/process-services-cloud/src/lib/process/process-filters/components/process-filters-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/process/process-filters/components/process-filters-cloud.component.spec.ts index c721b1faba..eb4c37c23a 100644 --- a/lib/process-services-cloud/src/lib/process/process-filters/components/process-filters-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-filters/components/process-filters-cloud.component.spec.ts @@ -211,8 +211,7 @@ describe('ProcessFiltersCloudComponent', () => { fixture.detectChanges(); component.ngOnChanges({ 'appName': change }); - - }); + }); it('should select the filter based on the input by key param', (done) => { spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable); @@ -231,8 +230,7 @@ describe('ProcessFiltersCloudComponent', () => { }); component.ngOnChanges({ 'appName': change }); - - }); + }); it('should select the default filter if filter input does not exist', (done) => { spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable); @@ -252,8 +250,7 @@ describe('ProcessFiltersCloudComponent', () => { }); component.ngOnChanges({ 'appName': change }); - - }); + }); it('should select the filter based on the input by index param', (done) => { spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable); @@ -272,8 +269,7 @@ describe('ProcessFiltersCloudComponent', () => { }); component.ngOnChanges({ 'appName': change }); - - }); + }); it('should select the filter based on the input by id param', (done) => { spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable); diff --git a/lib/process-services-cloud/src/lib/task/directives/claim-task.directive.spec.ts b/lib/process-services-cloud/src/lib/task/directives/claim-task.directive.spec.ts index eb73ae8350..0f96ea1417 100644 --- a/lib/process-services-cloud/src/lib/task/directives/claim-task.directive.spec.ts +++ b/lib/process-services-cloud/src/lib/task/directives/claim-task.directive.spec.ts @@ -64,7 +64,6 @@ describe('ClaimTaskDirective', () => { button.click(); expect(taskCloudService.claimTask).toHaveBeenCalled(); }); - }); describe('Claim Task Directive validation errors', () => { diff --git a/lib/process-services-cloud/src/lib/task/directives/unclaim-tast.directive.spec.ts b/lib/process-services-cloud/src/lib/task/directives/unclaim-tast.directive.spec.ts index 9cae2d9ba9..10e41bee95 100644 --- a/lib/process-services-cloud/src/lib/task/directives/unclaim-tast.directive.spec.ts +++ b/lib/process-services-cloud/src/lib/task/directives/unclaim-tast.directive.spec.ts @@ -65,7 +65,6 @@ describe('UnClaimTaskDirective', () => { button.click(); expect(taskCloudService.unclaimTask).toHaveBeenCalled(); }); - }); describe('UnClaim Task Directive validation errors', () => { diff --git a/lib/process-services-cloud/src/lib/task/task-form/components/task-form-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/task/task-form/components/task-form-cloud.component.spec.ts index 4aefaeff0b..f9e91fab0d 100644 --- a/lib/process-services-cloud/src/lib/task/task-form/components/task-form-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/task/task-form/components/task-form-cloud.component.spec.ts @@ -70,8 +70,7 @@ describe('TaskFormCloudComponent', () => { fixture = TestBed.createComponent(TaskFormCloudComponent); debugElement = fixture.debugElement; component = fixture.componentInstance; - - }); + }); it('should create TaskFormCloudComponent ', () => { expect(component instanceof TaskFormCloudComponent).toBe(true); @@ -407,8 +406,7 @@ describe('TaskFormCloudComponent', () => { expect(loadingTemplate).toBeNull(); }); - - }); + }); }); @Component({ diff --git a/lib/process-services-cloud/src/lib/task/task-header/components/task-header-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/task/task-header/components/task-header-cloud.component.spec.ts index f26d2676b9..d381ce5f1d 100644 --- a/lib/process-services-cloud/src/lib/task/task-header/components/task-header-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/task/task-header/components/task-header-cloud.component.spec.ts @@ -179,8 +179,7 @@ describe('TaskHeaderCloudComponent', () => { expect(updateTaskSpy).toHaveBeenCalled(); }); })); - - }); + }); describe('Task with parentTaskId', () => { diff --git a/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts index 2f08b178f6..002221d579 100644 --- a/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/task/task-list/components/task-list-cloud.component.spec.ts @@ -314,8 +314,7 @@ describe('TaskListCloudComponent', () => { customCopyComponent.taskList.ngOnChanges({ 'appName': appName }); copyFixture.detectChanges(); })); - - }); + }); describe('Creating an empty custom template - EmptyTemplateComponent', () => { let fixtureEmpty: ComponentFixture; @@ -426,5 +425,4 @@ describe('TaskListCloudComponent', () => { component.ngAfterContentInit(); })); }); - }); diff --git a/lib/process-services-cloud/src/lib/task/task-list/services/task-list-cloud.service.spec.ts b/lib/process-services-cloud/src/lib/task/task-list/services/task-list-cloud.service.spec.ts index 7be6aa31b9..0278e4faed 100644 --- a/lib/process-services-cloud/src/lib/task/task-list/services/task-list-cloud.service.spec.ts +++ b/lib/process-services-cloud/src/lib/task/task-list/services/task-list-cloud.service.spec.ts @@ -129,5 +129,4 @@ describe('Activiti TaskList Cloud Service', () => { } ); }); - }); diff --git a/lib/process-services/src/lib/app-list/apps-list.component.spec.ts b/lib/process-services/src/lib/app-list/apps-list.component.spec.ts index 49b73495c1..df01dc2282 100644 --- a/lib/process-services/src/lib/app-list/apps-list.component.spec.ts +++ b/lib/process-services/src/lib/app-list/apps-list.component.spec.ts @@ -201,8 +201,7 @@ describe('AppsListComponent', () => { fixture.detectChanges(); expect(debugElement.queryAll(By.css('h1')).length).toBe(1); }); - - }); + }); describe('select apps', () => { @@ -235,9 +234,7 @@ describe('AppsListComponent', () => { const appEls = debugElement.queryAll(By.css('.adf-app-listgrid > div')); expect(appEls[1].query(By.css('.adf-app-listgrid-item-card-actions-icon'))).not.toBeNull(); }); - - }); - + }); }); @Component({ diff --git a/lib/process-services/src/lib/attachment/create-process-attachment.component.spec.ts b/lib/process-services/src/lib/attachment/create-process-attachment.component.spec.ts index 61575e4981..89d0320561 100644 --- a/lib/process-services/src/lib/attachment/create-process-attachment.component.spec.ts +++ b/lib/process-services/src/lib/attachment/create-process-attachment.component.spec.ts @@ -116,5 +116,4 @@ describe('CreateProcessAttachmentComponent', () => { responseText: JSON.stringify(fakeUploadResponse) }); })); - }); diff --git a/lib/process-services/src/lib/attachment/process-attachment-list.component.spec.ts b/lib/process-services/src/lib/attachment/process-attachment-list.component.spec.ts index 4077c6b623..0765463591 100644 --- a/lib/process-services/src/lib/attachment/process-attachment-list.component.spec.ts +++ b/lib/process-services/src/lib/attachment/process-attachment-list.component.spec.ts @@ -287,9 +287,7 @@ describe('ProcessAttachmentListComponent', () => { it('should display a dialog to the user when the Add button clicked', () => { expect(true).toBe(true); }); - - }); - + }); }); @Component({ diff --git a/lib/process-services/src/lib/attachment/task-attachment-list.component.spec.ts b/lib/process-services/src/lib/attachment/task-attachment-list.component.spec.ts index cd5d5eadd0..aa21d3f86a 100644 --- a/lib/process-services/src/lib/attachment/task-attachment-list.component.spec.ts +++ b/lib/process-services/src/lib/attachment/task-attachment-list.component.spec.ts @@ -312,8 +312,7 @@ describe('TaskAttachmentList', () => { fixture.detectChanges(); expect(deleteContentSpy).toHaveBeenCalled(); }); - - }); + }); }); @Component({ diff --git a/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.component.spec.ts b/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.component.spec.ts index 2d6505d473..5dda2d1368 100644 --- a/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.component.spec.ts +++ b/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.component.spec.ts @@ -111,8 +111,7 @@ describe('AttachFileWidgetDialogComponent', () => { done(); }); }); - - }); + }); describe('When is logged in', () => { @@ -145,7 +144,5 @@ describe('AttachFileWidgetDialogComponent', () => { chooseButton.click(); }); }); - - }); - + }); }); diff --git a/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.service.spec.ts b/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.service.spec.ts index 1ab346e198..a882fcdeb2 100644 --- a/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.service.spec.ts +++ b/lib/process-services/src/lib/content-widget/attach-file-widget-dialog.service.spec.ts @@ -62,5 +62,4 @@ describe('AttachFileWidgetDialogService', () => { service.close(); expect(materialDialog.closeAll).toHaveBeenCalled(); }); - }); diff --git a/lib/process-services/src/lib/content-widget/attach-file-widget.components.spec.ts b/lib/process-services/src/lib/content-widget/attach-file-widget.components.spec.ts index 2e4548cc00..2e01a8c348 100644 --- a/lib/process-services/src/lib/content-widget/attach-file-widget.components.spec.ts +++ b/lib/process-services/src/lib/content-widget/attach-file-widget.components.spec.ts @@ -418,7 +418,5 @@ describe('AttachFileWidgetComponent', () => { const showOption: HTMLButtonElement = fixture.debugElement.query(By.css('#file-1155-show-file')).nativeElement; expect(showOption.disabled).toBeTruthy(); })); - - }); - + }); }); diff --git a/lib/process-services/src/lib/content-widget/attach-folder-widget.component.spec.ts b/lib/process-services/src/lib/content-widget/attach-folder-widget.component.spec.ts index a892781669..bdc8d020cb 100644 --- a/lib/process-services/src/lib/content-widget/attach-folder-widget.component.spec.ts +++ b/lib/process-services/src/lib/content-widget/attach-folder-widget.component.spec.ts @@ -150,5 +150,4 @@ describe('AttachFolderWidgetComponent', () => { expect(element.querySelector('#folder-fake-widget')).toBeNull(); }); })); - }); diff --git a/lib/process-services/src/lib/people/components/people-search/people-search.component.spec.ts b/lib/process-services/src/lib/people/components/people-search/people-search.component.spec.ts index 3e447115c2..6d41df04bd 100644 --- a/lib/process-services/src/lib/people/components/people-search/people-search.component.spec.ts +++ b/lib/process-services/src/lib/people/components/people-search/people-search.component.spec.ts @@ -66,8 +66,7 @@ describe('PeopleSearchComponent', () => { .then(() => { expect(element.querySelector('#search-people-list')).toBeNull(); }); - - }); + }); it('should show user which can be involved ', (done) => { peopleSearchComponent.results = of(userArray); diff --git a/lib/process-services/src/lib/process-list/components/process-audit.directive.spec.ts b/lib/process-services/src/lib/process-list/components/process-audit.directive.spec.ts index a418915d2e..2f8eaf61f7 100644 --- a/lib/process-services/src/lib/process-list/components/process-audit.directive.spec.ts +++ b/lib/process-services/src/lib/process-list/components/process-audit.directive.spec.ts @@ -167,5 +167,4 @@ describe('ProcessAuditDirective', () => { button.click(); })); - }); diff --git a/lib/process-services/src/lib/process-list/components/process-instance-header.component.spec.ts b/lib/process-services/src/lib/process-list/components/process-instance-header.component.spec.ts index d298f8891a..07945b6fb1 100644 --- a/lib/process-services/src/lib/process-list/components/process-instance-header.component.spec.ts +++ b/lib/process-services/src/lib/process-list/components/process-instance-header.component.spec.ts @@ -185,6 +185,5 @@ describe('ProcessInstanceHeaderComponent', () => { expect(propertyList[2].innerText).toContain('ADF_PROCESS_LIST.PROPERTIES.CATEGORY'); }); })); - - }); + }); }); diff --git a/lib/process-services/src/lib/process-list/components/start-process.component.spec.ts b/lib/process-services/src/lib/process-list/components/start-process.component.spec.ts index 505eff8efd..e1ab523c22 100644 --- a/lib/process-services/src/lib/process-list/components/start-process.component.spec.ts +++ b/lib/process-services/src/lib/process-list/components/start-process.component.spec.ts @@ -510,7 +510,5 @@ describe('StartFormComponent', () => { expect(component.hasStartForm()).toBe(true); }); })); - - }); - + }); }); diff --git a/lib/process-services/src/lib/process-list/services/process.service.spec.ts b/lib/process-services/src/lib/process-list/services/process.service.spec.ts index a5ae3de20b..8047ce56f9 100644 --- a/lib/process-services/src/lib/process-list/services/process.service.spec.ts +++ b/lib/process-services/src/lib/process-list/services/process.service.spec.ts @@ -118,8 +118,7 @@ describe('ProcessService', () => { } ); })); - - }); + }); describe('process instance', () => { @@ -169,8 +168,7 @@ describe('ProcessService', () => { } ); })); - - }); + }); describe('start process instance', () => { @@ -233,8 +231,7 @@ describe('ProcessService', () => { } ); })); - - }); + }); describe('cancel process instance', () => { @@ -282,8 +279,7 @@ describe('ProcessService', () => { } ); })); - - }); + }); describe('process definitions', () => { @@ -344,8 +340,7 @@ describe('ProcessService', () => { } ); })); - - }); + }); describe('process instance tasks', () => { @@ -413,8 +408,7 @@ describe('ProcessService', () => { } ); })); - - }); + }); describe('process variables', () => { @@ -532,6 +526,5 @@ describe('ProcessService', () => { })); }); - - }); + }); }); diff --git a/lib/process-services/src/lib/task-list/components/checklist.component.spec.ts b/lib/process-services/src/lib/task-list/components/checklist.component.spec.ts index 7627451797..e28ee8c3d4 100644 --- a/lib/process-services/src/lib/task-list/components/checklist.component.spec.ts +++ b/lib/process-services/src/lib/task-list/components/checklist.component.spec.ts @@ -285,5 +285,4 @@ describe('ChecklistComponent', () => { addButtonDialog.click(); }); }); - }); diff --git a/lib/process-services/src/lib/task-list/components/no-task-detail-template.directive.spec.ts b/lib/process-services/src/lib/task-list/components/no-task-detail-template.directive.spec.ts index 6c10426927..d34e9fbac4 100644 --- a/lib/process-services/src/lib/task-list/components/no-task-detail-template.directive.spec.ts +++ b/lib/process-services/src/lib/task-list/components/no-task-detail-template.directive.spec.ts @@ -39,5 +39,4 @@ describe('NoTaskDetailsTemplateDirective', () => { component.ngAfterContentInit(); expect(detailsComponent.noTaskDetailsTemplateComponent).toBe(testTemplate); }); - }); diff --git a/lib/process-services/src/lib/task-list/components/task-audit.directive.spec.ts b/lib/process-services/src/lib/task-list/components/task-audit.directive.spec.ts index 102400feab..558553dad9 100644 --- a/lib/process-services/src/lib/task-list/components/task-audit.directive.spec.ts +++ b/lib/process-services/src/lib/task-list/components/task-audit.directive.spec.ts @@ -153,5 +153,4 @@ describe('TaskAuditDirective', () => { button.click(); })); - }); diff --git a/lib/process-services/src/lib/task-list/components/task-details.component.spec.ts b/lib/process-services/src/lib/task-list/components/task-details.component.spec.ts index 066110c24a..af54cb358b 100644 --- a/lib/process-services/src/lib/task-list/components/task-details.component.spec.ts +++ b/lib/process-services/src/lib/task-list/components/task-details.component.spec.ts @@ -371,8 +371,7 @@ describe('TaskDetailsComponent', () => { component.onChecklistTaskCreated(mockTask); expect(emitSpy).toHaveBeenCalled(); }); - - }); + }); describe('Comments', () => { @@ -501,5 +500,4 @@ describe('TaskDetailsComponent', () => { expect(assignTaskSpy).toHaveBeenCalled(); }); }); - }); diff --git a/lib/process-services/src/lib/task-list/components/task-filters.component.spec.ts b/lib/process-services/src/lib/task-list/components/task-filters.component.spec.ts index 596c37c9e9..95e615c36c 100644 --- a/lib/process-services/src/lib/task-list/components/task-filters.component.spec.ts +++ b/lib/process-services/src/lib/task-list/components/task-filters.component.spec.ts @@ -102,8 +102,7 @@ describe('TaskFiltersComponent', () => { expect(err).toBeDefined(); done(); }); - - }); + }); it('should return the filter task list', (done) => { spyOn(taskFilterService, 'getTaskListFilters').and.returnValue(from(fakeGlobalFilterPromise)); @@ -161,8 +160,7 @@ describe('TaskFiltersComponent', () => { expect(component.currentFilter.name).toEqual('FakeInvolvedTasks'); done(); }); - - }); + }); it('should be able to fetch and select the default if the input filter is not valid', (done) => { spyOn(taskFilterService, 'getTaskListFilters').and.returnValue(from(fakeGlobalEmptyFilterPromise)); @@ -195,8 +193,7 @@ describe('TaskFiltersComponent', () => { expect(component.currentFilter.name).toEqual('FakeMyTasks1'); done(); }); - - }); + }); it('should select the default task filter if filter input does not exist', (done) => { spyOn(taskFilterService, 'getTaskListFilters').and.returnValue(from(fakeGlobalFilterPromise)); @@ -215,8 +212,7 @@ describe('TaskFiltersComponent', () => { expect(component.currentFilter.name).toEqual('FakeInvolvedTasks'); done(); }); - - }); + }); it('should select the task filter based on the input by index param', (done) => { spyOn(taskFilterService, 'getTaskListFilters').and.returnValue(from(fakeGlobalFilterPromise)); @@ -235,8 +231,7 @@ describe('TaskFiltersComponent', () => { expect(component.currentFilter.name).toEqual('FakeMyTasks2'); done(); }); - - }); + }); it('should select the task filter based on the input by id param', (done) => { spyOn(taskFilterService, 'getTaskListFilters').and.returnValue(from(fakeGlobalFilterPromise)); @@ -255,8 +250,7 @@ describe('TaskFiltersComponent', () => { expect(component.currentFilter.name).toEqual('FakeInvolvedTasks'); done(); }); - - }); + }); it('should emit an event when a filter is selected', (done) => { const currentFilter = fakeGlobalFilter[0]; diff --git a/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts b/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts index 7714cb4916..9fad274caa 100644 --- a/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts +++ b/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts @@ -195,7 +195,5 @@ describe('Activiti Task filter Service', () => { }) }); }); - - }); - + }); });