From bf729f60a243671297c20ee1c34ff7c7eef6cd88 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Wed, 13 May 2020 22:35:31 +0100 Subject: [PATCH] [Impreove e2e] Dev delete sites e2e missing (#5695) * fix e2e sites delete * fix lint * permamenent --- .../comments/comment-component.e2e.ts | 11 +++++------ .../directives/create-library-directive.e2e.ts | 5 +++-- .../directives/delete-directive.e2e.ts | 4 +--- .../directives/edit-folder-directive.e2e.ts | 1 - .../directives/restore-content-directive.e2e.ts | 4 +--- .../document-list/document-list-actions.e2e.ts | 1 - .../document-list/document-list-component.e2e.ts | 7 ------- .../document-list-copy-move-actions.e2e.ts | 3 +-- .../document-list/document-list-gallery.e2e.ts | 1 - .../document-list-permissions.e2e.ts | 2 +- .../document-list-properties.e2e.ts | 2 -- .../document-list-thumbnails-tooltips.e2e.ts | 6 ------ e2e/content-services/lock-file.e2e.ts | 6 ++++-- .../metadata/metadata-permissions.e2e.ts | 2 +- .../permissions/permissions-component.e2e.ts | 1 - .../permissions/site-permissions.e2e.ts | 7 ++----- .../share-file/unshare-file.e2e.ts | 7 +++---- .../upload/user-permission.e2e.ts | 14 ++++++++------ .../version/version-permissions.e2e.ts | 16 ++++++++-------- e2e/core/datatable/data-table-component.e2e.ts | 1 - e2e/core/login/login-sso/login-sso.e2e.ts | 1 - e2e/core/settings-component.e2e.ts | 1 - .../viewer-archive.component.e2e.ts | 7 +++---- .../file-extensions/viewer-component.e2e.ts | 11 +++++------ .../viewer-excel.component.e2e.ts | 11 +++++++---- .../viewer-image.component.e2e.ts | 16 +++++++++------- .../viewer-powerpoint.component.e2e.ts | 10 ++++++---- .../file-extensions/viewer-text.component.e2e.ts | 10 ++++++---- .../file-extensions/viewer-word.component.e2e.ts | 7 +++---- e2e/core/viewer/info-drawer.component.e2e.ts | 3 ++- e2e/core/viewer/viewer-extension.e2e.ts | 3 ++- e2e/core/viewer/viewer-share-content.ts | 3 ++- .../edit-process-filters-component.e2e.ts | 1 - .../people-group-cloud-component.e2e.ts | 2 -- .../process-custom-filters.e2e.ts | 1 - .../process-filters-cloud.e2e.ts | 2 -- .../process-list-cloud-action-menu.e2e.ts | 1 - .../start-task-form-cloud.e2e.ts | 1 - .../task-filters-cloud.e2e.ts | 2 -- .../task-list-cloud-action-menu.e2e.ts | 2 -- .../task-list-selection.e2e.ts | 2 -- .../tasks-custom-filters.e2e.ts | 1 - .../form-widgets-component.e2e.ts | 4 ---- .../processlist-pagination.e2e.ts | 1 - .../start-process-component.e2e.ts | 1 - .../task-filters-component.e2e.ts | 1 - e2e/search/components/search-check-list.e2e.ts | 1 - e2e/search/components/search-radio.e2e.ts | 1 - e2e/search/search-multiselect.e2e.ts | 8 ++------ 49 files changed, 85 insertions(+), 131 deletions(-) diff --git a/e2e/content-services/comments/comment-component.e2e.ts b/e2e/content-services/comments/comment-component.e2e.ts index ef01f59526..faad73c5d3 100644 --- a/e2e/content-services/comments/comment-component.e2e.ts +++ b/e2e/content-services/comments/comment-component.e2e.ts @@ -61,7 +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(); @@ -80,12 +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 }); @@ -102,7 +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); @@ -181,12 +181,11 @@ describe('Comment Component', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await navigationBarPage.clickContentServicesButton(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(pngUploadedFile.entry.id); - + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); }); it('[C290147] Should NOT be able to add comments to a site file with Consumer permissions', async () => { diff --git a/e2e/content-services/directives/create-library-directive.e2e.ts b/e2e/content-services/directives/create-library-directive.e2e.ts index ee6fc83927..ed89f96018 100644 --- a/e2e/content-services/directives/create-library-directive.e2e.ts +++ b/e2e/content-services/directives/create-library-directive.e2e.ts @@ -58,16 +58,17 @@ describe('Create library directive', () => { title: StringUtil.generateRandomString(20).toLowerCase(), visibility: 'PUBLIC' }); - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); + await this.alfrescoJsApi.core.sitesApi.deleteSite(createSite.entry.id, { permanent: true }); }); beforeEach(async () => { await contentServicesPage.goToDocumentList(); await contentServicesPage.openCreateLibraryDialog(); - }); + }); afterEach(async () => { await BrowserActions.closeMenuAndDialogs(); diff --git a/e2e/content-services/directives/delete-directive.e2e.ts b/e2e/content-services/directives/delete-directive.e2e.ts index 020d56d586..97750aef3d 100644 --- a/e2e/content-services/directives/delete-directive.e2e.ts +++ b/e2e/content-services/directives/delete-directive.e2e.ts @@ -246,9 +246,7 @@ describe('Delete Directive', () => { afterAll(async () => { try { - await this.alfrescoJsApi.core.sitesApi.deleteSite( - createdSite.entry.id - ); + await this.alfrescoJsApi.core.sitesApi.deleteSite(createdSite.entry.id, { permanent: true }); } catch (error) {} }); diff --git a/e2e/content-services/directives/edit-folder-directive.e2e.ts b/e2e/content-services/directives/edit-folder-directive.e2e.ts index 7e164688fc..1d56564768 100644 --- a/e2e/content-services/directives/edit-folder-directive.e2e.ts +++ b/e2e/content-services/directives/edit-folder-directive.e2e.ts @@ -228,7 +228,6 @@ describe('Edit folder directive', () => { await loginPage.loginToContentServicesUsingUserModel(anotherAcsUser); await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/files/' + editFolder.entry.id); await contentServicesPage.getDocumentList().dataTablePage().waitTillContentLoaded(); - }); it('[C260167] Edit folder without permission', async () => { diff --git a/e2e/content-services/directives/restore-content-directive.e2e.ts b/e2e/content-services/directives/restore-content-directive.e2e.ts index 18bdbdb22f..15834b98a5 100644 --- a/e2e/content-services/directives/restore-content-directive.e2e.ts +++ b/e2e/content-services/directives/restore-content-directive.e2e.ts @@ -125,7 +125,6 @@ describe('Restore content directive', () => { await contentServicesPage.checkContentIsDisplayed(folderName); await notificationHistoryPage.checkNotifyContains('Can\'t restore, ' + folderName + ' item already exists'); - }); }); @@ -246,7 +245,7 @@ describe('Restore content directive', () => { afterAll(async () => { try { - await this.alfrescoJsApi.core.sitesApi.deleteSite(publicSite.entry.id); + await this.alfrescoJsApi.core.sitesApi.deleteSite(publicSite.entry.id, { permanent: true }); } catch (error) { } }); @@ -267,7 +266,6 @@ describe('Restore content directive', () => { await contentServicesPage.doubleClickRow(siteFolder.entry.name); await contentServicesPage.checkContentIsDisplayed(siteFile.entry.name); await notificationHistoryPage.checkNotifyContains(publicSite.entry.id + ' item restored'); - }); }); 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 509d20c840..ab2ebbed5d 100644 --- a/e2e/content-services/document-list/document-list-actions.e2e.ts +++ b/e2e/content-services/document-list/document-list-actions.e2e.ts @@ -250,7 +250,6 @@ describe('Document List Component - Actions', () => { await contentServicesPage.checkContextActionIsVisible('Info'); await contentServicesPage.checkContextActionIsVisible('Permission'); }); - }); }); 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 12bf3f3a27..59878ec7db 100644 --- a/e2e/content-services/document-list/document-list-component.e2e.ts +++ b/e2e/content-services/document-list/document-list-component.e2e.ts @@ -94,7 +94,6 @@ describe('Document List Component', () => { uploadedFolder = await uploadActions.createFolder(folderName, '-my-'); pdfUploadedNode = await uploadActions.uploadFile(pdfFileModel.location, pdfFileModel.name, '-my-'); docxUploadedNode = await uploadActions.uploadFile(docxFileModel.location, docxFileModel.name, '-my-'); - }); afterAll(async () => { @@ -117,7 +116,6 @@ describe('Document List Component', () => { beforeEach(async () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); - }); it('[C279926] Should only display the user\'s files and folders', async () => { @@ -142,7 +140,6 @@ describe('Document List Component', () => { await contentServicesPage.goToDocumentList(); const dateValue = await contentServicesPage.getColumnValueForRow(timeAgoFileModel.name, 'Created'); await expect(dateValue).toMatch(/(ago|few)/); - }); it('[C279929] Should be able to display the date with date type', async () => { @@ -153,7 +150,6 @@ describe('Document List Component', () => { await contentServicesPage.enableMediumTimeFormat(); const dateValue = await contentServicesPage.getColumnValueForRow(mediumFileModel.name, 'Created'); await expect(dateValue).toContain(createdDate); - }); }); @@ -191,7 +187,6 @@ describe('Document List Component', () => { await loginPage.loginToContentServicesUsingUserModel(user); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { @@ -351,7 +346,6 @@ describe('Document List Component', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); await contentServicesPage.checkListIsSortedByNameColumn('asc'); - }); }); @@ -375,7 +369,6 @@ describe('Document List Component', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); await contentServicesPage.waitForTableBody(); - }); it('[C291843] Should be able to navigate using nodes hyperlink when activated', async () => { 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 96cc5d1eb5..464587cead 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 @@ -109,7 +109,7 @@ describe('Document List Component', () => { await uploadActions.deleteFileOrFolder(uploadedFile.entry.id); await uploadActions.deleteFileOrFolder(sourceFolder.entry.id); await uploadActions.deleteFileOrFolder(destinationFolder.entry.id); - await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id); + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); }); describe('Document List Component - Actions Move and Copy', () => { @@ -121,7 +121,6 @@ describe('Document List Component', () => { beforeEach(async () => { await BrowserActions.closeMenuAndDialogs(); await navigationBarPage.clickContentServicesButton(); - }); it('[C260128] Move - Same name file', async () => { 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 4cb7dad271..f3cc6439d8 100644 --- a/e2e/content-services/document-list/document-list-gallery.e2e.ts +++ b/e2e/content-services/document-list/document-list-gallery.e2e.ts @@ -76,7 +76,6 @@ describe('Document List Component', () => { filePDFSubNode = await uploadActions.uploadFile(pdfFile.location, pdfFile.name, folderNode.entry.id); await loginPage.loginToContentServicesUsingUserModel(acsUser); - }); afterAll(async () => { 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 16d7affc00..d0443e95af 100644 --- a/e2e/content-services/document-list/document-list-permissions.e2e.ts +++ b/e2e/content-services/document-list/document-list-permissions.e2e.ts @@ -57,7 +57,7 @@ describe('Document List Component', () => { afterAll(async () => { await navigationBarPage.clickLogoutButton(); - await this.alfrescoJsApi.core.sitesApi.deleteSite(privateSite.entry.id); + await this.alfrescoJsApi.core.sitesApi.deleteSite(privateSite.entry.id, { permanent: true }); }); it('[C217334] Should display a message when accessing file without permissions', async () => { diff --git a/e2e/content-services/document-list/document-list-properties.e2e.ts b/e2e/content-services/document-list/document-list-properties.e2e.ts index 00678d9500..e45e0e3286 100644 --- a/e2e/content-services/document-list/document-list-properties.e2e.ts +++ b/e2e/content-services/document-list/document-list-properties.e2e.ts @@ -59,14 +59,12 @@ describe('Document List Component - Properties', () => { subFolder = await uploadActions.createFolder('subFolder', parentFolder.entry.id); await loginPage.loginToContentServicesUsingUserModel(acsUser); - }); afterEach(async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await uploadActions.deleteFileOrFolder(subFolder.entry.id); await uploadActions.deleteFileOrFolder(parentFolder.entry.id); - }); it('[C299154] Should disallow upload content on a folder row if allowDropFiles is false', async () => { 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 80dd22e97a..41dd452c1d 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 @@ -88,7 +88,6 @@ describe('Document List Component', () => { fileTestNode = await uploadActions.uploadFile(testFile.location, testFile.name, '-my-'); fileDocxNode = await uploadActions.uploadFile(docxFile.location, docxFile.name, '-my-'); folderNode = await uploadActions.createFolder(folderName, '-my-'); - }); afterAll(async () => { @@ -126,25 +125,21 @@ describe('Document List Component', () => { it('[C260119] Should have a specific thumbnail for folders', async () => { const folderIconUrl = await contentServicesPage.getRowIconImageUrl(folderName); await expect(folderIconUrl).toContain('/assets/images/ft_ic_folder.svg'); - }); it('[C280066] Should have a specific thumbnail PDF files', async () => { const fileIconUrl = await contentServicesPage.getRowIconImageUrl(pdfFile.name); await expect(fileIconUrl).toContain('/assets/images/ft_ic_pdf.svg'); - }); it('[C280067] Should have a specific thumbnail DOCX files', async () => { const fileIconUrl = await contentServicesPage.getRowIconImageUrl(docxFile.name); await expect(fileIconUrl).toContain('/assets/images/ft_ic_ms_word.svg'); - }); it('[C280068] Should have a specific thumbnail files', async () => { const fileIconUrl = await contentServicesPage.getRowIconImageUrl(testFile.name); await expect(fileIconUrl).toContain('/assets/images/ft_ic_document.svg'); - }); it('[C274701] Should be able to enable thumbnails', async () => { @@ -152,7 +147,6 @@ describe('Document List Component', () => { await contentServicesPage.checkAcsContainer(); const fileIconUrl = await contentServicesPage.getRowIconImageUrl(pdfFile.name); await expect(fileIconUrl).toContain(`/versions/1/nodes/${filePdfNode.entry.id}/renditions`); - }); }); }); diff --git a/e2e/content-services/lock-file.e2e.ts b/e2e/content-services/lock-file.e2e.ts index 0b1a2058f2..ccccc18d5f 100644 --- a/e2e/content-services/lock-file.e2e.ts +++ b/e2e/content-services/lock-file.e2e.ts @@ -74,13 +74,16 @@ describe('Lock File', () => { }); }); + afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); + }); + describe('Lock file interaction with the UI', () => { beforeAll(async () => { const pngLockedUploadedFile = await uploadActions.uploadFile(pngFileToLock.location, pngFileToLock.name, documentLibrary); lockedFileNodeId = pngLockedUploadedFile.entry.id; - }); beforeEach(async () => { @@ -177,7 +180,6 @@ describe('Lock File', () => { await loginPage.loginToContentServicesUsingUserModel(managerUser); await navigationBarPage.openContentServicesFolder(documentLibrary); - }); afterEach(async () => { diff --git a/e2e/content-services/metadata/metadata-permissions.e2e.ts b/e2e/content-services/metadata/metadata-permissions.e2e.ts index bce8d42a15..9be0bef169 100644 --- a/e2e/content-services/metadata/metadata-permissions.e2e.ts +++ b/e2e/content-services/metadata/metadata-permissions.e2e.ts @@ -92,7 +92,7 @@ describe('permissions', () => { afterAll(async () => { await navigationBarPage.clickLogoutButton(); - await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id); + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); }); it('[C274692] Should not be possible edit metadata properties when the user is a consumer user', async () => { diff --git a/e2e/content-services/permissions/permissions-component.e2e.ts b/e2e/content-services/permissions/permissions-component.e2e.ts index dec6cae197..87e4d85eb7 100644 --- a/e2e/content-services/permissions/permissions-component.e2e.ts +++ b/e2e/content-services/permissions/permissions-component.e2e.ts @@ -183,7 +183,6 @@ describe('Permissions Component', () => { await contentList.rightClickOnRow(fileModel.name); await contentServicesPage.pressContextMenuActionNamed('Permission'); await permissionsPage.checkPermissionContainerIsDisplayed(); - }); afterEach(async () => { diff --git a/e2e/content-services/permissions/site-permissions.e2e.ts b/e2e/content-services/permissions/site-permissions.e2e.ts index 53c35cc22e..7b0af50b7f 100644 --- a/e2e/content-services/permissions/site-permissions.e2e.ts +++ b/e2e/content-services/permissions/site-permissions.e2e.ts @@ -153,8 +153,8 @@ describe('Permissions Component', () => { await navigationBarPage.clickLogoutButton(); 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); + await this.alfrescoJsApi.core.sitesApi.deleteSite(publicSite.entry.id, { permanent: true }); + await this.alfrescoJsApi.core.sitesApi.deleteSite(privateSite.entry.id, { permanent: true }); }); describe('Role Site Dropdown', () => { @@ -163,7 +163,6 @@ describe('Permissions Component', () => { await loginPage.loginToContentServicesUsingUserModel(folderOwnerUser); await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/files/' + publicSite.entry.guid); - }); it('[C277002] Should display the Role Site dropdown', async () => { @@ -228,7 +227,6 @@ describe('Permissions Component', () => { await contentServicesPage.uploadFile(testFileModel.location); await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content'); - }); it('[C276997] Role SiteContributor', async () => { @@ -259,7 +257,6 @@ describe('Permissions Component', () => { await uploadDialog.fileIsUploaded(testFileModel.name); await uploadDialog.clickOnCloseButton(); await uploadDialog.dialogIsNotDisplayed(); - }); it('[C277005] Role SiteCollaborator', async () => { diff --git a/e2e/content-services/share-file/unshare-file.e2e.ts b/e2e/content-services/share-file/unshare-file.e2e.ts index 89a4be9306..60e71cb8f1 100644 --- a/e2e/content-services/share-file/unshare-file.e2e.ts +++ b/e2e/content-services/share-file/unshare-file.e2e.ts @@ -106,20 +106,20 @@ describe('Unshare file', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await navBar.clickContentServicesButton(); await contentServicesPage.waitForTableBody(); - }); + }); afterAll(async () => { await navigationBarPage.clickLogoutButton(); + await this.alfrescoJsApi.core.sitesApi.deleteSite(testSite.entry.id, { permanent: true }); }); afterEach(async () => { await browser.refresh(); - }); + }); describe('with permission', () => { afterAll(async () => { await uploadActions.deleteFileOrFolder(nodeId); - }); it('[C286550] Should display unshare confirmation dialog', async () => { @@ -168,7 +168,6 @@ describe('Unshare file', () => { afterAll(async () => { await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await this.alfrescoJsApi.core.sitesApi.deleteSite(siteName, { permanent: true }); - }); it('[C286555] Should NOT be able to unshare file without permission', async () => { diff --git a/e2e/content-services/upload/user-permission.e2e.ts b/e2e/content-services/upload/user-permission.e2e.ts index 780993270e..b0610ce162 100644 --- a/e2e/content-services/upload/user-permission.e2e.ts +++ b/e2e/content-services/upload/user-permission.e2e.ts @@ -88,13 +88,17 @@ describe('Upload - User permission', () => { id: acsUser.id, role: CONSTANTS.CS_USER_ROLES.MANAGER }); - }); + }); + + afterEach(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(this.managerSite.entry.id, { permanent: true }); + await this.alfrescoJsApi.core.sitesApi.deleteSite(this.consumerSite.entry.id, { permanent: true }); + }); describe('Consumer permissions', () => { beforeEach(async () => { await contentServicesPage.goToDocumentList(); - }); it('[C291921] Should display tooltip for uploading files without permissions', async () => { @@ -128,7 +132,7 @@ describe('Upload - User permission', () => { await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content'); }); - }); + }); describe('full permissions', () => { @@ -136,7 +140,6 @@ describe('Upload - User permission', () => { await navigationBarPage.openContentServicesFolder(this.managerSite.entry.guid); await contentServicesPage.goToDocumentList(); - }); it('[C279917] Should be allowed to upload a file in a folder with manager permissions', async () => { @@ -144,13 +147,12 @@ describe('Upload - User permission', () => { await uploadDialog.fileIsUploaded(emptyFile.name); }); - }); + }); describe('multiple users', () => { beforeEach(async () => { await contentServicesPage.goToDocumentList(); - }); it('[C260175] Should two different user upload files in the proper User Home', async () => { diff --git a/e2e/content-services/version/version-permissions.e2e.ts b/e2e/content-services/version/version-permissions.e2e.ts index 1dfc50826e..695c549543 100644 --- a/e2e/content-services/version/version-permissions.e2e.ts +++ b/e2e/content-services/version/version-permissions.e2e.ts @@ -60,14 +60,13 @@ describe('Version component permissions', () => { }); this.alfrescoJsApi = new AlfrescoApi({ - provider: 'ECM', - hostEcm: browser.params.testConfig.adf_acs.host - }); + provider: 'ECM', + hostEcm: browser.params.testConfig.adf_acs.host + }); const uploadActions = new UploadActions(this.alfrescoJsApi); const nodeActions = new NodeActions(); 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.core.peopleApi.addPerson(consumerUser); @@ -116,6 +115,10 @@ describe('Version component permissions', () => { await uploadActions.uploadFile(differentCreatorFile.location, differentCreatorFile.name, site.entry.guid); }); + afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); + }); + describe('Manager', () => { const sameCreatorFile = new FileModel({ @@ -172,7 +175,6 @@ describe('Version component permissions', () => { await loginPage.loginToContentServicesUsingUserModel(consumerUser); await navigationBarPage.openContentServicesFolder(site.entry.guid); - }); afterAll(async () => { @@ -189,7 +191,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({ @@ -206,7 +208,6 @@ describe('Version component permissions', () => { await loginPage.loginToContentServicesUsingUserModel(contributorUser); await navigationBarPage.openContentServicesFolder(site.entry.guid); - }); afterAll(async () => { @@ -262,7 +263,6 @@ describe('Version component permissions', () => { await loginPage.loginToContentServicesUsingUserModel(collaboratorUser); await navigationBarPage.openContentServicesFolder(site.entry.guid); - }); afterAll(async () => { diff --git a/e2e/core/datatable/data-table-component.e2e.ts b/e2e/core/datatable/data-table-component.e2e.ts index 03fa900095..c16b77a6cf 100644 --- a/e2e/core/datatable/data-table-component.e2e.ts +++ b/e2e/core/datatable/data-table-component.e2e.ts @@ -61,7 +61,6 @@ describe('Datatable component', () => { beforeAll(async () => { await navigationBarPage.navigateToCopyContentDatatable(); await dataTablePage.dataTable.waitForTableBody(); - }); it('[C307037] A tooltip is displayed when mouseOver a column with copyContent set to true', async () => { diff --git a/e2e/core/login/login-sso/login-sso.e2e.ts b/e2e/core/login/login-sso/login-sso.e2e.ts index 57f5aa1e09..107eeb4dc3 100644 --- a/e2e/core/login/login-sso/login-sso.e2e.ts +++ b/e2e/core/login/login-sso/login-sso.e2e.ts @@ -71,7 +71,6 @@ describe('Login component - SSO', () => { await loginPage.clickSignInButton(); await BrowserVisibility.waitUntilElementIsVisible(loginPage.sidenavLayout); - }); }); }); diff --git a/e2e/core/settings-component.e2e.ts b/e2e/core/settings-component.e2e.ts index 2ada16357c..a64731ae47 100644 --- a/e2e/core/settings-component.e2e.ts +++ b/e2e/core/settings-component.e2e.ts @@ -40,7 +40,6 @@ describe('Settings component', () => { describe('Should be able to change Urls in the Settings', () => { beforeEach(async () => { await settingsPage.goToSettingsPage(); - }); it('[C245641] Should navigate User from Settings page to Login screen', async () => { 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 d89c8adcd1..dd59d31e99 100644 --- a/e2e/core/viewer/file-extensions/viewer-archive.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-archive.component.e2e.ts @@ -56,9 +56,10 @@ describe('Viewer', () => { role: CONSTANTS.CS_USER_ROLES.MANAGER }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - }); + }); afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); await navigationBarPage.clickLogoutButton(); }); @@ -71,12 +72,10 @@ describe('Viewer', () => { uploadedArchives = await uploadActions.uploadFolder(archiveFolderInfo.location, archiveFolderUploaded.entry.id); await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(archiveFolderUploaded.entry.id); - }); it('[C260517] Should be possible to open any Archive file', async () => { @@ -89,5 +88,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 13545fc069..15d65762b7 100644 --- a/e2e/core/viewer/file-extensions/viewer-component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-component.e2e.ts @@ -33,9 +33,9 @@ describe('Viewer', () => { const navigationBarPage = new NavigationBarPage(); this.alfrescoJsApi = new AlfrescoApi({ - provider: 'ECM', - hostEcm: browser.params.testConfig.adf_acs.host - }); + provider: 'ECM', + hostEcm: browser.params.testConfig.adf_acs.host + }); const uploadActions = new UploadActions(this.alfrescoJsApi); let site; const acsUser = new AcsUserModel(); @@ -71,6 +71,7 @@ describe('Viewer', () => { }); afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); await navigationBarPage.clickLogoutButton(); }); @@ -99,12 +100,10 @@ describe('Viewer', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(otherFolderUploaded.entry.id); - }); it('[C280012] Should be possible to open any other Document supported extension', async () => { @@ -117,5 +116,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 b824f27ca3..609b8a1686 100644 --- a/e2e/core/viewer/file-extensions/viewer-excel.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-excel.component.e2e.ts @@ -56,7 +56,12 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - }); + }); + + afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); + }); + describe('Excel Folder Uploaded', () => { let uploadedExcels; @@ -69,12 +74,10 @@ describe('Viewer', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(excelFolderUploaded.entry.id); - }); it('[C280008] Should be possible to open any Excel file', async () => { @@ -87,5 +90,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 685bbd0ad1..9d67e8fd21 100644 --- a/e2e/core/viewer/file-extensions/viewer-image.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-image.component.e2e.ts @@ -29,9 +29,9 @@ describe('Viewer', () => { const loginPage = new LoginPage(); const contentServicesPage = new ContentServicesPage(); this.alfrescoJsApi = new AlfrescoApi({ - provider: 'ECM', - hostEcm: browser.params.testConfig.adf_acs.host - }); + provider: 'ECM', + hostEcm: browser.params.testConfig.adf_acs.host + }); const uploadActions = new UploadActions(this.alfrescoJsApi); let site; const acsUser = new AcsUserModel(); @@ -61,7 +61,11 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - }); + }); + + afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); + }); describe('Image Folder Uploaded', () => { @@ -79,12 +83,10 @@ describe('Viewer', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(imgFolderUploaded.entry.id); - }); it('[C279966] Should be possible to open any Image supported extension', async () => { @@ -105,5 +107,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 125357c37c..3059d27158 100644 --- a/e2e/core/viewer/file-extensions/viewer-powerpoint.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-powerpoint.component.e2e.ts @@ -57,7 +57,11 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - }); + }); + + afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); + }); describe('PowerPoint Folder Uploaded', () => { @@ -71,12 +75,10 @@ describe('Viewer', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(pptFolderUploaded.entry.id); - }); it('[C280009] Should be possible to open any PowerPoint file', async () => { @@ -90,5 +92,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 cfa98aba40..3cc2d56ca7 100644 --- a/e2e/core/viewer/file-extensions/viewer-text.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-text.component.e2e.ts @@ -56,7 +56,11 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - }); + }); + + afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); + }); describe('Text Folder Uploaded', () => { @@ -70,12 +74,10 @@ describe('Viewer', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(textFolderUploaded.entry.id); - }); it('[C280010] Should be possible to open any Text file', async () => { @@ -88,5 +90,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 86d91addfa..2eb7d83209 100644 --- a/e2e/core/viewer/file-extensions/viewer-word.component.e2e.ts +++ b/e2e/core/viewer/file-extensions/viewer-word.component.e2e.ts @@ -59,9 +59,10 @@ describe('Viewer', () => { }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); - }); + }); afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); await navigationBarPage.clickLogoutButton(); }); @@ -77,12 +78,10 @@ describe('Viewer', () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); await contentServicesPage.goToDocumentList(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(wordFolderUploaded.entry.id); - }); it('[C280011] Should be possible to open any Word file', async () => { @@ -95,5 +94,5 @@ describe('Viewer', () => { } } }); - }); + }); }); diff --git a/e2e/core/viewer/info-drawer.component.e2e.ts b/e2e/core/viewer/info-drawer.component.e2e.ts index da0dc5afa5..0532f140a9 100644 --- a/e2e/core/viewer/info-drawer.component.e2e.ts +++ b/e2e/core/viewer/info-drawer.component.e2e.ts @@ -66,7 +66,8 @@ describe('Info Drawer', () => { afterAll(async () => { await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await uploadActions.deleteFileOrFolder(pngFileUploaded.entry.id); - }); + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); + }); beforeEach(async() => { await loginPage.loginToContentServicesUsingUserModel(acsUser); diff --git a/e2e/core/viewer/viewer-extension.e2e.ts b/e2e/core/viewer/viewer-extension.e2e.ts index 0248cf7d01..617e9e1ec5 100644 --- a/e2e/core/viewer/viewer-extension.e2e.ts +++ b/e2e/core/viewer/viewer-extension.e2e.ts @@ -66,9 +66,10 @@ describe('Viewer', () => { jsFileUploaded = await uploadActions.uploadFile(jsFileInfo.location, jsFileInfo.name, '-my-'); await loginPage.loginToContentServicesUsingUserModel(acsUser); - }); + }); afterAll(async () => { + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await uploadActions.deleteFileOrFolder(jsFileUploaded.entry.id); }); diff --git a/e2e/core/viewer/viewer-share-content.ts b/e2e/core/viewer/viewer-share-content.ts index a0aabfa9ef..8a3ba3f47b 100644 --- a/e2e/core/viewer/viewer-share-content.ts +++ b/e2e/core/viewer/viewer-share-content.ts @@ -77,9 +77,10 @@ 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.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await uploadActions.deleteFileOrFolder(wordFileUploaded.entry.id); }); 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 87eacaa5ed..6f2c705426 100644 --- a/e2e/process-services-cloud/edit-process-filters-component.e2e.ts +++ b/e2e/process-services-cloud/edit-process-filters-component.e2e.ts @@ -50,7 +50,6 @@ describe('Edit process filters cloud', () => { afterAll(async () => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - }); beforeEach(async () => { 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 e6bb502ae3..fa103d0b21 100644 --- a/e2e/process-services-cloud/people-group-cloud-component.e2e.ts +++ b/e2e/process-services-cloud/people-group-cloud-component.e2e.ts @@ -240,7 +240,6 @@ describe('People Groups Cloud Component', () => { await peopleCloudComponent.searchAssigneeToExisting(noRoleUser.lastName); await peopleCloudComponent.checkUserIsNotDisplayed(`${noRoleUser.firstName} ${noRoleUser.lastName}`); - }); it('[C309677] Should populate the Users without any validation when the Preselect flag is set to false', async () => { @@ -255,7 +254,6 @@ describe('People Groups Cloud Component', () => { await peopleCloudComponent.checkSelectedPeople('TestFirstName1 TestLastName1'); await peopleCloudComponent.checkSelectedPeople('TestFirstName2 TestLastName2'); await peopleCloudComponent.checkSelectedPeople('TestFirstName3 TestLastName3'); - }); }); }); diff --git a/e2e/process-services-cloud/process-custom-filters.e2e.ts b/e2e/process-services-cloud/process-custom-filters.e2e.ts index 06054dd714..b97e012389 100644 --- a/e2e/process-services-cloud/process-custom-filters.e2e.ts +++ b/e2e/process-services-cloud/process-custom-filters.e2e.ts @@ -101,7 +101,6 @@ describe('Process list 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 () => { diff --git a/e2e/process-services-cloud/process-filters-cloud.e2e.ts b/e2e/process-services-cloud/process-filters-cloud.e2e.ts index 6511099cf7..b859628c9d 100644 --- a/e2e/process-services-cloud/process-filters-cloud.e2e.ts +++ b/e2e/process-services-cloud/process-filters-cloud.e2e.ts @@ -95,7 +95,6 @@ describe('Process filters cloud', () => { afterAll(async () => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - }); beforeEach(async () => { @@ -104,7 +103,6 @@ describe('Process filters cloud', () => { await appListCloudComponent.goToApp(candidateBaseApp); await tasksCloudDemoPage.taskListCloudComponent().checkTaskListIsLoaded(); await processCloudDemoPage.processFilterCloudComponent.clickOnProcessFilters(); - }); it('[C290021] Should be able to view default filters', async () => { 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 6c42e986af..4e7149d99e 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 @@ -78,7 +78,6 @@ describe('Process list cloud', () => { afterAll(async () => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - }); beforeAll(async () => { 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 d92fa3895c..c1edadcacf 100644 --- a/e2e/process-services-cloud/start-task-form-cloud.e2e.ts +++ b/e2e/process-services-cloud/start-task-form-cloud.e2e.ts @@ -308,7 +308,6 @@ describe('Start Task Form', () => { await processCloudDemoPage.editProcessFilterCloudComponent().openFilter(); await processCloudDemoPage.editProcessFilterCloudComponent().setProcessName(startEventFormProcess); await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedById(processId); - }); }); diff --git a/e2e/process-services-cloud/task-filters-cloud.e2e.ts b/e2e/process-services-cloud/task-filters-cloud.e2e.ts index 0ac8721fbc..efdf681bcd 100644 --- a/e2e/process-services-cloud/task-filters-cloud.e2e.ts +++ b/e2e/process-services-cloud/task-filters-cloud.e2e.ts @@ -48,13 +48,11 @@ describe('Task filters cloud', () => { await apiService.login(testUser.email, testUser.password); await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password); - }); afterAll(async() => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - }); beforeEach(async () => { 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 98d03f2bd2..2cda738fa4 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 @@ -65,13 +65,11 @@ describe('Process list cloud', () => { await tasksService.claimTask(deleteTask.list.entries[0].entry.id, simpleApp); await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password); - }); afterAll(async() => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - }); beforeAll(async () => { diff --git a/e2e/process-services-cloud/task-list-selection.e2e.ts b/e2e/process-services-cloud/task-list-selection.e2e.ts index df6993336e..c92d71dd79 100644 --- a/e2e/process-services-cloud/task-list-selection.e2e.ts +++ b/e2e/process-services-cloud/task-list-selection.e2e.ts @@ -60,13 +60,11 @@ describe('Task list cloud - selection', () => { } await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password); - }); afterAll(async() => { await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password); await identityService.deleteIdentityUser(testUser.idIdentityService); - }); beforeEach(async () => { diff --git a/e2e/process-services-cloud/tasks-custom-filters.e2e.ts b/e2e/process-services-cloud/tasks-custom-filters.e2e.ts index ea0e74e3b0..5d96c5844c 100644 --- a/e2e/process-services-cloud/tasks-custom-filters.e2e.ts +++ b/e2e/process-services-cloud/tasks-custom-filters.e2e.ts @@ -112,7 +112,6 @@ describe('Task filters cloud', () => { await appListCloudComponent.checkApsContainer(); await appListCloudComponent.goToApp(simpleApp); await tasksCloudDemoPage.taskListCloudComponent().getDataTable().waitForTableBody(); - }); it('[C290045] Should display only tasks with Assigned status when Assigned is selected from status dropdown', async () => { diff --git a/e2e/process-services/form-widgets-component.e2e.ts b/e2e/process-services/form-widgets-component.e2e.ts index 8814bcf0e8..b55c2cc5d4 100644 --- a/e2e/process-services/form-widgets-component.e2e.ts +++ b/e2e/process-services/form-widgets-component.e2e.ts @@ -77,14 +77,12 @@ describe('Form widgets', () => { const formDefinition = await alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response); formInstance.setFields(formDefinition.fields); formInstance.setAllWidgets(formDefinition.fields); - }); afterAll(async () => { await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword); await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId); - }); it('[C272778] Should display text and multi-line in form', async () => { @@ -221,7 +219,6 @@ describe('Form widgets', () => { const processUtil = new ProcessUtil(alfrescoJsApi); process = await processUtil.startProcessOfApp(appModel.name); await loginPage.loginToProcessServicesUsingUserModel(processUserModel); - }); beforeEach(async () => { @@ -235,7 +232,6 @@ describe('Form widgets', () => { 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('[C260405] Value fields configured with process variables', async () => { diff --git a/e2e/process-services/processlist-pagination.e2e.ts b/e2e/process-services/processlist-pagination.e2e.ts index 10d45c0d95..c5c4fa9de4 100644 --- a/e2e/process-services/processlist-pagination.e2e.ts +++ b/e2e/process-services/processlist-pagination.e2e.ts @@ -91,7 +91,6 @@ describe('Process List - Pagination', () => { beforeEach(async () => { await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton(); - }); it('[C261042] Should display default pagination', async() => { diff --git a/e2e/process-services/start-process-component.e2e.ts b/e2e/process-services/start-process-component.e2e.ts index 414ce98e86..98fe1c445a 100644 --- a/e2e/process-services/start-process-component.e2e.ts +++ b/e2e/process-services/start-process-component.e2e.ts @@ -520,7 +520,6 @@ describe('Start Process Component', () => { const appCreated = await applicationsService.importPublishDeployApp(startProcessAttachFileApp.file_path); appId = appCreated.id; - }); afterAll(async () => { diff --git a/e2e/process-services/task-filters-component.e2e.ts b/e2e/process-services/task-filters-component.e2e.ts index 0a35d3aca3..d03ed4fac4 100644 --- a/e2e/process-services/task-filters-component.e2e.ts +++ b/e2e/process-services/task-filters-component.e2e.ts @@ -67,7 +67,6 @@ describe('Task', () => { await navigationBarPage.navigateToProcessServicesPage(); await processServicesPage.checkApsContainer(); await processServicesPage.goToApp(app.title); - }); afterEach(async () => { diff --git a/e2e/search/components/search-check-list.e2e.ts b/e2e/search/components/search-check-list.e2e.ts index 2a38b274a1..cc8780509d 100644 --- a/e2e/search/components/search-check-list.e2e.ts +++ b/e2e/search/components/search-check-list.e2e.ts @@ -283,7 +283,6 @@ describe('Search Checklist Component', () => { beforeAll(async () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); - }); it('[C277018] Should be able to change the operator', async () => { diff --git a/e2e/search/components/search-radio.e2e.ts b/e2e/search/components/search-radio.e2e.ts index cba315b0c2..13239e04d5 100644 --- a/e2e/search/components/search-radio.e2e.ts +++ b/e2e/search/components/search-radio.e2e.ts @@ -260,7 +260,6 @@ describe('Search Radio Component', () => { beforeAll(async () => { await loginPage.loginToContentServicesUsingUserModel(acsUser); - }); it('[C277033] Should be able to add a new option', async () => { diff --git a/e2e/search/search-multiselect.e2e.ts b/e2e/search/search-multiselect.e2e.ts index 91143e7d8c..f13c3aee3f 100644 --- a/e2e/search/search-multiselect.e2e.ts +++ b/e2e/search/search-multiselect.e2e.ts @@ -86,7 +86,6 @@ describe('Search Component - Multi-Select Facet', () => { await searchFiltersPage.checkSearchFiltersIsDisplayed(); await searchFiltersPage.creatorCheckListFiltersPage().filterBy(userOption); - }); afterAll(async () => { @@ -97,9 +96,8 @@ describe('Search Component - Multi-Select Facet', () => { uploadActions.deleteFileOrFolder(txtFileSite.entry.id) ]); - await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id); + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); await navigationBarPage.clickLogoutButton(); - }); it('[C280054] Should be able to select multiple items from a search facet filter', async () => { @@ -224,13 +222,11 @@ describe('Search Component - Multi-Select Facet', () => { await searchDialog.enterTextAndPressEnter(`*${randomName}*`); await searchFiltersPage.checkSearchFiltersIsDisplayed(); - }); afterAll(async () => { await uploadActions.deleteFileOrFolder(txtFile.entry.id); - await this.alfrescoJsApi.core.sitesApi; - + await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true }); }); it('[C280058] Should update filter facets items number when another filter facet item is selected', async () => {