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 () => {
|
beforeAll(async () => {
|
||||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
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(acsUser);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await navigationBarPage.clickLogoutButton();
|
await navigationBarPage.clickLogoutButton();
|
||||||
@ -80,12 +80,12 @@ describe('Comment Component', () => {
|
|||||||
|
|
||||||
await navigationBarPage.clickContentServicesButton();
|
await navigationBarPage.clickContentServicesButton();
|
||||||
await contentServicesPage.waitForTableBody();
|
await contentServicesPage.waitForTableBody();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||||
await uploadActions.deleteFileOrFolder(nodeId);
|
await uploadActions.deleteFileOrFolder(nodeId);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C276947] Should be able to add a comment on ACS and view on ADF', async () => {
|
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 });
|
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.getMessage(0)).toEqual(comments.test);
|
||||||
await expect(await commentsPage.getUserName(0)).toEqual(userFullName);
|
await expect(await commentsPage.getUserName(0)).toEqual(userFullName);
|
||||||
await expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
await expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C276948] Should be able to add a comment on a file', async () => {
|
it('[C276948] Should be able to add a comment on a file', async () => {
|
||||||
await viewerPage.viewFile(pngFileModel.name);
|
await viewerPage.viewFile(pngFileModel.name);
|
||||||
@ -181,12 +181,11 @@ describe('Comment Component', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
|
||||||
await navigationBarPage.clickContentServicesButton();
|
await navigationBarPage.clickContentServicesButton();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(pngUploadedFile.entry.id);
|
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 () => {
|
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(),
|
title: StringUtil.generateRandomString(20).toLowerCase(),
|
||||||
visibility: 'PUBLIC'
|
visibility: 'PUBLIC'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await navigationBarPage.clickLogoutButton();
|
await navigationBarPage.clickLogoutButton();
|
||||||
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(createSite.entry.id, { permanent: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
await contentServicesPage.openCreateLibraryDialog();
|
await contentServicesPage.openCreateLibraryDialog();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await BrowserActions.closeMenuAndDialogs();
|
await BrowserActions.closeMenuAndDialogs();
|
||||||
|
@ -246,9 +246,7 @@ describe('Delete Directive', () => {
|
|||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
try {
|
try {
|
||||||
await this.alfrescoJsApi.core.sitesApi.deleteSite(
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(createdSite.entry.id, { permanent: true });
|
||||||
createdSite.entry.id
|
|
||||||
);
|
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -228,7 +228,6 @@ describe('Edit folder directive', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(anotherAcsUser);
|
await loginPage.loginToContentServicesUsingUserModel(anotherAcsUser);
|
||||||
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/files/' + editFolder.entry.id);
|
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/files/' + editFolder.entry.id);
|
||||||
await contentServicesPage.getDocumentList().dataTablePage().waitTillContentLoaded();
|
await contentServicesPage.getDocumentList().dataTablePage().waitTillContentLoaded();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C260167] Edit folder without permission', async () => {
|
it('[C260167] Edit folder without permission', async () => {
|
||||||
|
@ -125,7 +125,6 @@ describe('Restore content directive', () => {
|
|||||||
await contentServicesPage.checkContentIsDisplayed(folderName);
|
await contentServicesPage.checkContentIsDisplayed(folderName);
|
||||||
|
|
||||||
await notificationHistoryPage.checkNotifyContains('Can\'t restore, ' + folderName + ' item already exists');
|
await notificationHistoryPage.checkNotifyContains('Can\'t restore, ' + folderName + ' item already exists');
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -246,7 +245,7 @@ describe('Restore content directive', () => {
|
|||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
try {
|
try {
|
||||||
await this.alfrescoJsApi.core.sitesApi.deleteSite(publicSite.entry.id);
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(publicSite.entry.id, { permanent: true });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -267,7 +266,6 @@ describe('Restore content directive', () => {
|
|||||||
await contentServicesPage.doubleClickRow(siteFolder.entry.name);
|
await contentServicesPage.doubleClickRow(siteFolder.entry.name);
|
||||||
await contentServicesPage.checkContentIsDisplayed(siteFile.entry.name);
|
await contentServicesPage.checkContentIsDisplayed(siteFile.entry.name);
|
||||||
await notificationHistoryPage.checkNotifyContains(publicSite.entry.id + ' item restored');
|
await notificationHistoryPage.checkNotifyContains(publicSite.entry.id + ' item restored');
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -250,7 +250,6 @@ describe('Document List Component - Actions', () => {
|
|||||||
await contentServicesPage.checkContextActionIsVisible('Info');
|
await contentServicesPage.checkContextActionIsVisible('Info');
|
||||||
await contentServicesPage.checkContextActionIsVisible('Permission');
|
await contentServicesPage.checkContextActionIsVisible('Permission');
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -94,7 +94,6 @@ describe('Document List Component', () => {
|
|||||||
uploadedFolder = await uploadActions.createFolder(folderName, '-my-');
|
uploadedFolder = await uploadActions.createFolder(folderName, '-my-');
|
||||||
pdfUploadedNode = await uploadActions.uploadFile(pdfFileModel.location, pdfFileModel.name, '-my-');
|
pdfUploadedNode = await uploadActions.uploadFile(pdfFileModel.location, pdfFileModel.name, '-my-');
|
||||||
docxUploadedNode = await uploadActions.uploadFile(docxFileModel.location, docxFileModel.name, '-my-');
|
docxUploadedNode = await uploadActions.uploadFile(docxFileModel.location, docxFileModel.name, '-my-');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
@ -117,7 +116,6 @@ describe('Document List Component', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C279926] Should only display the user\'s files and folders', async () => {
|
it('[C279926] Should only display the user\'s files and folders', async () => {
|
||||||
@ -142,7 +140,6 @@ describe('Document List Component', () => {
|
|||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
const dateValue = await contentServicesPage.getColumnValueForRow(timeAgoFileModel.name, 'Created');
|
const dateValue = await contentServicesPage.getColumnValueForRow(timeAgoFileModel.name, 'Created');
|
||||||
await expect(dateValue).toMatch(/(ago|few)/);
|
await expect(dateValue).toMatch(/(ago|few)/);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C279929] Should be able to display the date with date type', async () => {
|
it('[C279929] Should be able to display the date with date type', async () => {
|
||||||
@ -153,7 +150,6 @@ describe('Document List Component', () => {
|
|||||||
await contentServicesPage.enableMediumTimeFormat();
|
await contentServicesPage.enableMediumTimeFormat();
|
||||||
const dateValue = await contentServicesPage.getColumnValueForRow(mediumFileModel.name, 'Created');
|
const dateValue = await contentServicesPage.getColumnValueForRow(mediumFileModel.name, 'Created');
|
||||||
await expect(dateValue).toContain(createdDate);
|
await expect(dateValue).toContain(createdDate);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -191,7 +187,6 @@ describe('Document List Component', () => {
|
|||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(user);
|
await loginPage.loginToContentServicesUsingUserModel(user);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
@ -351,7 +346,6 @@ describe('Document List Component', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
await contentServicesPage.checkListIsSortedByNameColumn('asc');
|
await contentServicesPage.checkListIsSortedByNameColumn('asc');
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -375,7 +369,6 @@ describe('Document List Component', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
await contentServicesPage.waitForTableBody();
|
await contentServicesPage.waitForTableBody();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C291843] Should be able to navigate using nodes hyperlink when activated', async () => {
|
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(uploadedFile.entry.id);
|
||||||
await uploadActions.deleteFileOrFolder(sourceFolder.entry.id);
|
await uploadActions.deleteFileOrFolder(sourceFolder.entry.id);
|
||||||
await uploadActions.deleteFileOrFolder(destinationFolder.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', () => {
|
describe('Document List Component - Actions Move and Copy', () => {
|
||||||
@ -121,7 +121,6 @@ describe('Document List Component', () => {
|
|||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await BrowserActions.closeMenuAndDialogs();
|
await BrowserActions.closeMenuAndDialogs();
|
||||||
await navigationBarPage.clickContentServicesButton();
|
await navigationBarPage.clickContentServicesButton();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C260128] Move - Same name file', async () => {
|
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);
|
filePDFSubNode = await uploadActions.uploadFile(pdfFile.location, pdfFile.name, folderNode.entry.id);
|
||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
@ -57,7 +57,7 @@ describe('Document List Component', () => {
|
|||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await navigationBarPage.clickLogoutButton();
|
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 () => {
|
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);
|
subFolder = await uploadActions.createFolder('subFolder', parentFolder.entry.id);
|
||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||||
await uploadActions.deleteFileOrFolder(subFolder.entry.id);
|
await uploadActions.deleteFileOrFolder(subFolder.entry.id);
|
||||||
await uploadActions.deleteFileOrFolder(parentFolder.entry.id);
|
await uploadActions.deleteFileOrFolder(parentFolder.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C299154] Should disallow upload content on a folder row if allowDropFiles is false', async () => {
|
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-');
|
fileTestNode = await uploadActions.uploadFile(testFile.location, testFile.name, '-my-');
|
||||||
fileDocxNode = await uploadActions.uploadFile(docxFile.location, docxFile.name, '-my-');
|
fileDocxNode = await uploadActions.uploadFile(docxFile.location, docxFile.name, '-my-');
|
||||||
folderNode = await uploadActions.createFolder(folderName, '-my-');
|
folderNode = await uploadActions.createFolder(folderName, '-my-');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
@ -126,25 +125,21 @@ describe('Document List Component', () => {
|
|||||||
it('[C260119] Should have a specific thumbnail for folders', async () => {
|
it('[C260119] Should have a specific thumbnail for folders', async () => {
|
||||||
const folderIconUrl = await contentServicesPage.getRowIconImageUrl(folderName);
|
const folderIconUrl = await contentServicesPage.getRowIconImageUrl(folderName);
|
||||||
await expect(folderIconUrl).toContain('/assets/images/ft_ic_folder.svg');
|
await expect(folderIconUrl).toContain('/assets/images/ft_ic_folder.svg');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280066] Should have a specific thumbnail PDF files', async () => {
|
it('[C280066] Should have a specific thumbnail PDF files', async () => {
|
||||||
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(pdfFile.name);
|
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(pdfFile.name);
|
||||||
await expect(fileIconUrl).toContain('/assets/images/ft_ic_pdf.svg');
|
await expect(fileIconUrl).toContain('/assets/images/ft_ic_pdf.svg');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280067] Should have a specific thumbnail DOCX files', async () => {
|
it('[C280067] Should have a specific thumbnail DOCX files', async () => {
|
||||||
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(docxFile.name);
|
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(docxFile.name);
|
||||||
await expect(fileIconUrl).toContain('/assets/images/ft_ic_ms_word.svg');
|
await expect(fileIconUrl).toContain('/assets/images/ft_ic_ms_word.svg');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280068] Should have a specific thumbnail files', async () => {
|
it('[C280068] Should have a specific thumbnail files', async () => {
|
||||||
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(testFile.name);
|
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(testFile.name);
|
||||||
await expect(fileIconUrl).toContain('/assets/images/ft_ic_document.svg');
|
await expect(fileIconUrl).toContain('/assets/images/ft_ic_document.svg');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C274701] Should be able to enable thumbnails', async () => {
|
it('[C274701] Should be able to enable thumbnails', async () => {
|
||||||
@ -152,7 +147,6 @@ describe('Document List Component', () => {
|
|||||||
await contentServicesPage.checkAcsContainer();
|
await contentServicesPage.checkAcsContainer();
|
||||||
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(pdfFile.name);
|
const fileIconUrl = await contentServicesPage.getRowIconImageUrl(pdfFile.name);
|
||||||
await expect(fileIconUrl).toContain(`/versions/1/nodes/${filePdfNode.entry.id}/renditions`);
|
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', () => {
|
describe('Lock file interaction with the UI', () => {
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const pngLockedUploadedFile = await uploadActions.uploadFile(pngFileToLock.location, pngFileToLock.name, documentLibrary);
|
const pngLockedUploadedFile = await uploadActions.uploadFile(pngFileToLock.location, pngFileToLock.name, documentLibrary);
|
||||||
|
|
||||||
lockedFileNodeId = pngLockedUploadedFile.entry.id;
|
lockedFileNodeId = pngLockedUploadedFile.entry.id;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
@ -177,7 +180,6 @@ describe('Lock File', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(managerUser);
|
await loginPage.loginToContentServicesUsingUserModel(managerUser);
|
||||||
|
|
||||||
await navigationBarPage.openContentServicesFolder(documentLibrary);
|
await navigationBarPage.openContentServicesFolder(documentLibrary);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
|
@ -92,7 +92,7 @@ describe('permissions', () => {
|
|||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await navigationBarPage.clickLogoutButton();
|
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 () => {
|
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 contentList.rightClickOnRow(fileModel.name);
|
||||||
await contentServicesPage.pressContextMenuActionNamed('Permission');
|
await contentServicesPage.pressContextMenuActionNamed('Permission');
|
||||||
await permissionsPage.checkPermissionContainerIsDisplayed();
|
await permissionsPage.checkPermissionContainerIsDisplayed();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
|
@ -153,8 +153,8 @@ describe('Permissions Component', () => {
|
|||||||
await navigationBarPage.clickLogoutButton();
|
await navigationBarPage.clickLogoutButton();
|
||||||
|
|
||||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
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(publicSite.entry.id, { permanent: true });
|
||||||
await this.alfrescoJsApi.core.sitesApi.deleteSite(privateSite.entry.id);
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(privateSite.entry.id, { permanent: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Role Site Dropdown', () => {
|
describe('Role Site Dropdown', () => {
|
||||||
@ -163,7 +163,6 @@ describe('Permissions Component', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(folderOwnerUser);
|
await loginPage.loginToContentServicesUsingUserModel(folderOwnerUser);
|
||||||
|
|
||||||
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/files/' + publicSite.entry.guid);
|
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/files/' + publicSite.entry.guid);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C277002] Should display the Role Site dropdown', async () => {
|
it('[C277002] Should display the Role Site dropdown', async () => {
|
||||||
@ -228,7 +227,6 @@ describe('Permissions Component', () => {
|
|||||||
await contentServicesPage.uploadFile(testFileModel.location);
|
await contentServicesPage.uploadFile(testFileModel.location);
|
||||||
|
|
||||||
await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content');
|
await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C276997] Role SiteContributor', async () => {
|
it('[C276997] Role SiteContributor', async () => {
|
||||||
@ -259,7 +257,6 @@ describe('Permissions Component', () => {
|
|||||||
await uploadDialog.fileIsUploaded(testFileModel.name);
|
await uploadDialog.fileIsUploaded(testFileModel.name);
|
||||||
await uploadDialog.clickOnCloseButton();
|
await uploadDialog.clickOnCloseButton();
|
||||||
await uploadDialog.dialogIsNotDisplayed();
|
await uploadDialog.dialogIsNotDisplayed();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C277005] Role SiteCollaborator', async () => {
|
it('[C277005] Role SiteCollaborator', async () => {
|
||||||
|
@ -106,20 +106,20 @@ describe('Unshare file', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await navBar.clickContentServicesButton();
|
await navBar.clickContentServicesButton();
|
||||||
await contentServicesPage.waitForTableBody();
|
await contentServicesPage.waitForTableBody();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await navigationBarPage.clickLogoutButton();
|
await navigationBarPage.clickLogoutButton();
|
||||||
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(testSite.entry.id, { permanent: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await browser.refresh();
|
await browser.refresh();
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('with permission', () => {
|
describe('with permission', () => {
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(nodeId);
|
await uploadActions.deleteFileOrFolder(nodeId);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C286550] Should display unshare confirmation dialog', async () => {
|
it('[C286550] Should display unshare confirmation dialog', async () => {
|
||||||
@ -168,7 +168,6 @@ describe('Unshare file', () => {
|
|||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||||
await this.alfrescoJsApi.core.sitesApi.deleteSite(siteName, { permanent: true });
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(siteName, { permanent: true });
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C286555] Should NOT be able to unshare file without permission', async () => {
|
it('[C286555] Should NOT be able to unshare file without permission', async () => {
|
||||||
|
@ -88,13 +88,17 @@ describe('Upload - User permission', () => {
|
|||||||
id: acsUser.id,
|
id: acsUser.id,
|
||||||
role: CONSTANTS.CS_USER_ROLES.MANAGER
|
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', () => {
|
describe('Consumer permissions', () => {
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C291921] Should display tooltip for uploading files without permissions', async () => {
|
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');
|
await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('full permissions', () => {
|
describe('full permissions', () => {
|
||||||
|
|
||||||
@ -136,7 +140,6 @@ describe('Upload - User permission', () => {
|
|||||||
await navigationBarPage.openContentServicesFolder(this.managerSite.entry.guid);
|
await navigationBarPage.openContentServicesFolder(this.managerSite.entry.guid);
|
||||||
|
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C279917] Should be allowed to upload a file in a folder with manager permissions', async () => {
|
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);
|
await uploadDialog.fileIsUploaded(emptyFile.name);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('multiple users', () => {
|
describe('multiple users', () => {
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C260175] Should two different user upload files in the proper User Home', async () => {
|
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({
|
this.alfrescoJsApi = new AlfrescoApi({
|
||||||
provider: 'ECM',
|
provider: 'ECM',
|
||||||
hostEcm: browser.params.testConfig.adf_acs.host
|
hostEcm: browser.params.testConfig.adf_acs.host
|
||||||
});
|
});
|
||||||
const uploadActions = new UploadActions(this.alfrescoJsApi);
|
const uploadActions = new UploadActions(this.alfrescoJsApi);
|
||||||
const nodeActions = new NodeActions();
|
const nodeActions = new NodeActions();
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
|
||||||
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
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(acsUser);
|
||||||
await this.alfrescoJsApi.core.peopleApi.addPerson(consumerUser);
|
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);
|
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', () => {
|
describe('Manager', () => {
|
||||||
|
|
||||||
const sameCreatorFile = new FileModel({
|
const sameCreatorFile = new FileModel({
|
||||||
@ -172,7 +175,6 @@ describe('Version component permissions', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(consumerUser);
|
await loginPage.loginToContentServicesUsingUserModel(consumerUser);
|
||||||
|
|
||||||
await navigationBarPage.openContentServicesFolder(site.entry.guid);
|
await navigationBarPage.openContentServicesFolder(site.entry.guid);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
@ -189,7 +191,7 @@ describe('Version component permissions', () => {
|
|||||||
await contentServices.getDocumentList().rightClickOnRow(lockFileModel.name);
|
await contentServices.getDocumentList().rightClickOnRow(lockFileModel.name);
|
||||||
await expect(await contentServices.isContextActionEnabled('Manage versions')).toBe(false, 'Manage version is enabled');
|
await expect(await contentServices.isContextActionEnabled('Manage versions')).toBe(false, 'Manage version is enabled');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Contributor', () => {
|
describe('Contributor', () => {
|
||||||
const sameCreatorFile = new FileModel({
|
const sameCreatorFile = new FileModel({
|
||||||
@ -206,7 +208,6 @@ describe('Version component permissions', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(contributorUser);
|
await loginPage.loginToContentServicesUsingUserModel(contributorUser);
|
||||||
|
|
||||||
await navigationBarPage.openContentServicesFolder(site.entry.guid);
|
await navigationBarPage.openContentServicesFolder(site.entry.guid);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
@ -262,7 +263,6 @@ describe('Version component permissions', () => {
|
|||||||
await loginPage.loginToContentServicesUsingUserModel(collaboratorUser);
|
await loginPage.loginToContentServicesUsingUserModel(collaboratorUser);
|
||||||
|
|
||||||
await navigationBarPage.openContentServicesFolder(site.entry.guid);
|
await navigationBarPage.openContentServicesFolder(site.entry.guid);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
@ -61,7 +61,6 @@ describe('Datatable component', () => {
|
|||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await navigationBarPage.navigateToCopyContentDatatable();
|
await navigationBarPage.navigateToCopyContentDatatable();
|
||||||
await dataTablePage.dataTable.waitForTableBody();
|
await dataTablePage.dataTable.waitForTableBody();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C307037] A tooltip is displayed when mouseOver a column with copyContent set to true', async () => {
|
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 loginPage.clickSignInButton();
|
||||||
|
|
||||||
await BrowserVisibility.waitUntilElementIsVisible(loginPage.sidenavLayout);
|
await BrowserVisibility.waitUntilElementIsVisible(loginPage.sidenavLayout);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -40,7 +40,6 @@ describe('Settings component', () => {
|
|||||||
describe('Should be able to change Urls in the Settings', () => {
|
describe('Should be able to change Urls in the Settings', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await settingsPage.goToSettingsPage();
|
await settingsPage.goToSettingsPage();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C245641] Should navigate User from Settings page to Login screen', async () => {
|
it('[C245641] Should navigate User from Settings page to Login screen', async () => {
|
||||||
|
@ -56,9 +56,10 @@ describe('Viewer', () => {
|
|||||||
role: CONSTANTS.CS_USER_ROLES.MANAGER
|
role: CONSTANTS.CS_USER_ROLES.MANAGER
|
||||||
});
|
});
|
||||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true });
|
||||||
await navigationBarPage.clickLogoutButton();
|
await navigationBarPage.clickLogoutButton();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -71,12 +72,10 @@ describe('Viewer', () => {
|
|||||||
uploadedArchives = await uploadActions.uploadFolder(archiveFolderInfo.location, archiveFolderUploaded.entry.id);
|
uploadedArchives = await uploadActions.uploadFolder(archiveFolderInfo.location, archiveFolderUploaded.entry.id);
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(archiveFolderUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(archiveFolderUploaded.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C260517] Should be possible to open any Archive file', async () => {
|
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();
|
const navigationBarPage = new NavigationBarPage();
|
||||||
|
|
||||||
this.alfrescoJsApi = new AlfrescoApi({
|
this.alfrescoJsApi = new AlfrescoApi({
|
||||||
provider: 'ECM',
|
provider: 'ECM',
|
||||||
hostEcm: browser.params.testConfig.adf_acs.host
|
hostEcm: browser.params.testConfig.adf_acs.host
|
||||||
});
|
});
|
||||||
const uploadActions = new UploadActions(this.alfrescoJsApi);
|
const uploadActions = new UploadActions(this.alfrescoJsApi);
|
||||||
let site;
|
let site;
|
||||||
const acsUser = new AcsUserModel();
|
const acsUser = new AcsUserModel();
|
||||||
@ -71,6 +71,7 @@ describe('Viewer', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true });
|
||||||
await navigationBarPage.clickLogoutButton();
|
await navigationBarPage.clickLogoutButton();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -99,12 +100,10 @@ describe('Viewer', () => {
|
|||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(otherFolderUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(otherFolderUploaded.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280012] Should be possible to open any other Document supported extension', async () => {
|
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);
|
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', () => {
|
describe('Excel Folder Uploaded', () => {
|
||||||
|
|
||||||
let uploadedExcels;
|
let uploadedExcels;
|
||||||
@ -69,12 +74,10 @@ describe('Viewer', () => {
|
|||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(excelFolderUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(excelFolderUploaded.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280008] Should be possible to open any Excel file', async () => {
|
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 loginPage = new LoginPage();
|
||||||
const contentServicesPage = new ContentServicesPage();
|
const contentServicesPage = new ContentServicesPage();
|
||||||
this.alfrescoJsApi = new AlfrescoApi({
|
this.alfrescoJsApi = new AlfrescoApi({
|
||||||
provider: 'ECM',
|
provider: 'ECM',
|
||||||
hostEcm: browser.params.testConfig.adf_acs.host
|
hostEcm: browser.params.testConfig.adf_acs.host
|
||||||
});
|
});
|
||||||
const uploadActions = new UploadActions(this.alfrescoJsApi);
|
const uploadActions = new UploadActions(this.alfrescoJsApi);
|
||||||
let site;
|
let site;
|
||||||
const acsUser = new AcsUserModel();
|
const acsUser = new AcsUserModel();
|
||||||
@ -61,7 +61,11 @@ describe('Viewer', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
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', () => {
|
describe('Image Folder Uploaded', () => {
|
||||||
|
|
||||||
@ -79,12 +83,10 @@ describe('Viewer', () => {
|
|||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(imgFolderUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(imgFolderUploaded.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C279966] Should be possible to open any Image supported extension', async () => {
|
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);
|
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', () => {
|
describe('PowerPoint Folder Uploaded', () => {
|
||||||
|
|
||||||
@ -71,12 +75,10 @@ describe('Viewer', () => {
|
|||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(pptFolderUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(pptFolderUploaded.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280009] Should be possible to open any PowerPoint file', async () => {
|
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);
|
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', () => {
|
describe('Text Folder Uploaded', () => {
|
||||||
|
|
||||||
@ -70,12 +74,10 @@ describe('Viewer', () => {
|
|||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(textFolderUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(textFolderUploaded.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280010] Should be possible to open any Text file', async () => {
|
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);
|
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true });
|
||||||
await navigationBarPage.clickLogoutButton();
|
await navigationBarPage.clickLogoutButton();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -77,12 +78,10 @@ describe('Viewer', () => {
|
|||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
await contentServicesPage.goToDocumentList();
|
await contentServicesPage.goToDocumentList();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(wordFolderUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(wordFolderUploaded.entry.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280011] Should be possible to open any Word file', async () => {
|
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 () => {
|
afterAll(async () => {
|
||||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||||
await uploadActions.deleteFileOrFolder(pngFileUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(pngFileUploaded.entry.id);
|
||||||
});
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true });
|
||||||
|
});
|
||||||
|
|
||||||
beforeEach(async() => {
|
beforeEach(async() => {
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
@ -66,9 +66,10 @@ describe('Viewer', () => {
|
|||||||
jsFileUploaded = await uploadActions.uploadFile(jsFileInfo.location, jsFileInfo.name, '-my-');
|
jsFileUploaded = await uploadActions.uploadFile(jsFileInfo.location, jsFileInfo.name, '-my-');
|
||||||
|
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true });
|
||||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||||
await uploadActions.deleteFileOrFolder(jsFileUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(jsFileUploaded.entry.id);
|
||||||
});
|
});
|
||||||
|
@ -77,9 +77,10 @@ describe('Viewer', () => {
|
|||||||
wordFileUploaded = await uploadActions.uploadFile(wordFileInfo.location, wordFileInfo.name, '-my-');
|
wordFileUploaded = await uploadActions.uploadFile(wordFileInfo.location, wordFileInfo.name, '-my-');
|
||||||
|
|
||||||
pngFileShared = await this.alfrescoJsApi.core.sharedlinksApi.addSharedLink({ 'nodeId': pngFileUploaded.entry.id });
|
pngFileShared = await this.alfrescoJsApi.core.sharedlinksApi.addSharedLink({ 'nodeId': pngFileUploaded.entry.id });
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
await this.alfrescoJsApi.core.sitesApi.deleteSite(site.entry.id, { permanent: true });
|
||||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||||
await uploadActions.deleteFileOrFolder(wordFileUploaded.entry.id);
|
await uploadActions.deleteFileOrFolder(wordFileUploaded.entry.id);
|
||||||
});
|
});
|
||||||
|
@ -50,7 +50,6 @@ describe('Edit process filters cloud', () => {
|
|||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
@ -240,7 +240,6 @@ describe('People Groups Cloud Component', () => {
|
|||||||
|
|
||||||
await peopleCloudComponent.searchAssigneeToExisting(noRoleUser.lastName);
|
await peopleCloudComponent.searchAssigneeToExisting(noRoleUser.lastName);
|
||||||
await peopleCloudComponent.checkUserIsNotDisplayed(`${noRoleUser.firstName} ${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 () => {
|
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('TestFirstName1 TestLastName1');
|
||||||
await peopleCloudComponent.checkSelectedPeople('TestFirstName2 TestLastName2');
|
await peopleCloudComponent.checkSelectedPeople('TestFirstName2 TestLastName2');
|
||||||
await peopleCloudComponent.checkSelectedPeople('TestFirstName3 TestLastName3');
|
await peopleCloudComponent.checkSelectedPeople('TestFirstName3 TestLastName3');
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -101,7 +101,6 @@ describe('Process list cloud', () => {
|
|||||||
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
||||||
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
||||||
await LocalStorageUtil.setConfigField('adf-cloud-process-list', JSON.stringify(processListCloudConfigFile));
|
await LocalStorageUtil.setConfigField('adf-cloud-process-list', JSON.stringify(processListCloudConfigFile));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
@ -95,7 +95,6 @@ describe('Process filters cloud', () => {
|
|||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
@ -104,7 +103,6 @@ describe('Process filters cloud', () => {
|
|||||||
await appListCloudComponent.goToApp(candidateBaseApp);
|
await appListCloudComponent.goToApp(candidateBaseApp);
|
||||||
await tasksCloudDemoPage.taskListCloudComponent().checkTaskListIsLoaded();
|
await tasksCloudDemoPage.taskListCloudComponent().checkTaskListIsLoaded();
|
||||||
await processCloudDemoPage.processFilterCloudComponent.clickOnProcessFilters();
|
await processCloudDemoPage.processFilterCloudComponent.clickOnProcessFilters();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C290021] Should be able to view default filters', async () => {
|
it('[C290021] Should be able to view default filters', async () => {
|
||||||
|
@ -78,7 +78,6 @@ describe('Process list cloud', () => {
|
|||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
@ -308,7 +308,6 @@ describe('Start Task Form', () => {
|
|||||||
await processCloudDemoPage.editProcessFilterCloudComponent().openFilter();
|
await processCloudDemoPage.editProcessFilterCloudComponent().openFilter();
|
||||||
await processCloudDemoPage.editProcessFilterCloudComponent().setProcessName(startEventFormProcess);
|
await processCloudDemoPage.editProcessFilterCloudComponent().setProcessName(startEventFormProcess);
|
||||||
await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedById(processId);
|
await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedById(processId);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -48,13 +48,11 @@ describe('Task filters cloud', () => {
|
|||||||
await apiService.login(testUser.email, testUser.password);
|
await apiService.login(testUser.email, testUser.password);
|
||||||
|
|
||||||
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async() => {
|
afterAll(async() => {
|
||||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
@ -65,13 +65,11 @@ describe('Process list cloud', () => {
|
|||||||
await tasksService.claimTask(deleteTask.list.entries[0].entry.id, simpleApp);
|
await tasksService.claimTask(deleteTask.list.entries[0].entry.id, simpleApp);
|
||||||
|
|
||||||
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async() => {
|
afterAll(async() => {
|
||||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
@ -60,13 +60,11 @@ describe('Task list cloud - selection', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
await loginSSOPage.loginSSOIdentityService(testUser.email, testUser.password);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async() => {
|
afterAll(async() => {
|
||||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
@ -112,7 +112,6 @@ describe('Task filters cloud', () => {
|
|||||||
await appListCloudComponent.checkApsContainer();
|
await appListCloudComponent.checkApsContainer();
|
||||||
await appListCloudComponent.goToApp(simpleApp);
|
await appListCloudComponent.goToApp(simpleApp);
|
||||||
await tasksCloudDemoPage.taskListCloudComponent().getDataTable().waitForTableBody();
|
await tasksCloudDemoPage.taskListCloudComponent().getDataTable().waitForTableBody();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C290045] Should display only tasks with Assigned status when Assigned is selected from status dropdown', async () => {
|
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);
|
const formDefinition = await alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response);
|
||||||
formInstance.setFields(formDefinition.fields);
|
formInstance.setFields(formDefinition.fields);
|
||||||
formInstance.setAllWidgets(formDefinition.fields);
|
formInstance.setAllWidgets(formDefinition.fields);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||||
|
|
||||||
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
|
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C272778] Should display text and multi-line in form', async () => {
|
it('[C272778] Should display text and multi-line in form', async () => {
|
||||||
@ -221,7 +219,6 @@ describe('Form widgets', () => {
|
|||||||
const processUtil = new ProcessUtil(alfrescoJsApi);
|
const processUtil = new ProcessUtil(alfrescoJsApi);
|
||||||
process = await processUtil.startProcessOfApp(appModel.name);
|
process = await processUtil.startProcessOfApp(appModel.name);
|
||||||
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
|
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
@ -235,7 +232,6 @@ describe('Form widgets', () => {
|
|||||||
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
|
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
|
||||||
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
|
||||||
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
|
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C260405] Value fields configured with process variables', async () => {
|
it('[C260405] Value fields configured with process variables', async () => {
|
||||||
|
@ -91,7 +91,6 @@ describe('Process List - Pagination', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton();
|
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C261042] Should display default pagination', async() => {
|
it('[C261042] Should display default pagination', async() => {
|
||||||
|
@ -520,7 +520,6 @@ describe('Start Process Component', () => {
|
|||||||
|
|
||||||
const appCreated = await applicationsService.importPublishDeployApp(startProcessAttachFileApp.file_path);
|
const appCreated = await applicationsService.importPublishDeployApp(startProcessAttachFileApp.file_path);
|
||||||
appId = appCreated.id;
|
appId = appCreated.id;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
@ -67,7 +67,6 @@ describe('Task', () => {
|
|||||||
await navigationBarPage.navigateToProcessServicesPage();
|
await navigationBarPage.navigateToProcessServicesPage();
|
||||||
await processServicesPage.checkApsContainer();
|
await processServicesPage.checkApsContainer();
|
||||||
await processServicesPage.goToApp(app.title);
|
await processServicesPage.goToApp(app.title);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
|
@ -283,7 +283,6 @@ describe('Search Checklist Component', () => {
|
|||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C277018] Should be able to change the operator', async () => {
|
it('[C277018] Should be able to change the operator', async () => {
|
||||||
|
@ -260,7 +260,6 @@ describe('Search Radio Component', () => {
|
|||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C277033] Should be able to add a new option', async () => {
|
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.checkSearchFiltersIsDisplayed();
|
||||||
await searchFiltersPage.creatorCheckListFiltersPage().filterBy(userOption);
|
await searchFiltersPage.creatorCheckListFiltersPage().filterBy(userOption);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
@ -97,9 +96,8 @@ describe('Search Component - Multi-Select Facet', () => {
|
|||||||
uploadActions.deleteFileOrFolder(txtFileSite.entry.id)
|
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();
|
await navigationBarPage.clickLogoutButton();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C280054] Should be able to select multiple items from a search facet filter', async () => {
|
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 searchDialog.enterTextAndPressEnter(`*${randomName}*`);
|
||||||
|
|
||||||
await searchFiltersPage.checkSearchFiltersIsDisplayed();
|
await searchFiltersPage.checkSearchFiltersIsDisplayed();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
await uploadActions.deleteFileOrFolder(txtFile.entry.id);
|
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 () => {
|
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