mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3023]Refactor APS1 PO and ACS API calls of ADF testing package (#5629)
* Change the uploadFile method from ADF testing package * Fix lint * no message * Fix a part of the tests * Fix last tests * Fix test * Fix tests * Fix test
This commit is contained in:
@@ -47,8 +47,9 @@ describe('Permissions Component', () => {
|
||||
let fileOwnerUser, filePermissionUser, file;
|
||||
const fileModel = new FileModel({
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_path
|
||||
});
|
||||
const fileLocation = browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location;
|
||||
|
||||
const testFileModel = new FileModel({
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.TEST.file_name,
|
||||
@@ -319,7 +320,7 @@ describe('Permissions Component', () => {
|
||||
await contentList.checkActionMenuIsNotDisplayed();
|
||||
await contentServicesPage.metadataContent('RoleConsumer' + fileModel.name);
|
||||
await notificationHistoryPage.checkNotifyContains('You don\'t have access to do this.');
|
||||
await contentServicesPage.uploadFile(fileModel.location);
|
||||
await contentServicesPage.uploadFile(fileLocation);
|
||||
await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content');
|
||||
});
|
||||
|
||||
@@ -363,7 +364,7 @@ describe('Permissions Component', () => {
|
||||
await metadataViewPage.clickUpdatePropertyIcon('properties.cm:title');
|
||||
await expect(await metadataViewPage.getPropertyText('properties.cm:title')).toEqual('newTitle1');
|
||||
await metadataViewPage.clickCloseButton();
|
||||
await contentServicesPage.uploadFile(fileModel.location);
|
||||
await contentServicesPage.uploadFile(fileLocation);
|
||||
await notificationHistoryPage.checkNotifyContains('You don\'t have the create permission to upload the content');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user