mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[Impreove e2e] Dev delete sites e2e missing (#5695)
* fix e2e sites delete * fix lint * permamenent
This commit is contained in:
parent
0186d11fe8
commit
bf729f60a2
@ -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 () => {
|
||||
|
@ -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();
|
||||
|
@ -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) {}
|
||||
});
|
||||
|
||||
|
@ -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 () => {
|
||||
|
@ -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');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -250,7 +250,6 @@ describe('Document List Component - Actions', () => {
|
||||
await contentServicesPage.checkContextActionIsVisible('Info');
|
||||
await contentServicesPage.checkContextActionIsVisible('Permission');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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`);
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -183,7 +183,6 @@ describe('Permissions Component', () => {
|
||||
await contentList.rightClickOnRow(fileModel.name);
|
||||
await contentServicesPage.pressContextMenuActionNamed('Permission');
|
||||
await permissionsPage.checkPermissionContainerIsDisplayed();
|
||||
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -71,7 +71,6 @@ describe('Login component - SSO', () => {
|
||||
await loginPage.clickSignInButton();
|
||||
|
||||
await BrowserVisibility.waitUntilElementIsVisible(loginPage.sidenavLayout);
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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 () => {
|
||||
|
@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -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 () => {
|
||||
|
@ -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');
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -308,7 +308,6 @@ describe('Start Task Form', () => {
|
||||
await processCloudDemoPage.editProcessFilterCloudComponent().openFilter();
|
||||
await processCloudDemoPage.editProcessFilterCloudComponent().setProcessName(startEventFormProcess);
|
||||
await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedById(processId);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -91,7 +91,6 @@ describe('Process List - Pagination', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton();
|
||||
|
||||
});
|
||||
|
||||
it('[C261042] Should display default pagination', async() => {
|
||||
|
@ -520,7 +520,6 @@ describe('Start Process Component', () => {
|
||||
|
||||
const appCreated = await applicationsService.importPublishDeployApp(startProcessAttachFileApp.file_path);
|
||||
appId = appCreated.id;
|
||||
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@ -67,7 +67,6 @@ describe('Task', () => {
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await processServicesPage.goToApp(app.title);
|
||||
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
@ -283,7 +283,6 @@ describe('Search Checklist Component', () => {
|
||||
|
||||
beforeAll(async () => {
|
||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||
|
||||
});
|
||||
|
||||
it('[C277018] Should be able to change the operator', async () => {
|
||||
|
@ -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 () => {
|
||||
|
@ -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 () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user