[ADF-4350]Fix cloud tests (#4544)

* Fix version-permissions tests

* Fix the cloud tests

* Fix process-services tests
This commit is contained in:
cristinaj
2019-04-03 13:47:05 +03:00
committed by Eugenio Romano
parent a37a44cb6f
commit f152a24dc2
4 changed files with 24 additions and 17 deletions

View File

@@ -316,12 +316,6 @@ describe('Version component permissions', () => {
uploadDialog.clickOnCloseButton();
});
it('[C277203] Should a user with Collaborator permission not be able to upload a new version for a locked file', () => {
contentServices.getDocumentList().rightClickOnRow(lockFileModel.name);
const actionVersion = contentServices.checkContextActionIsVisible('Manage versions');
expect(actionVersion.isEnabled()).toBeFalsy();
});
it('[C277199] should a user with Collaborator permission be able to upload a new version for a file with different creator', () => {
contentServices.versionManagerContent(differentCreatorFile.name);
@@ -341,6 +335,12 @@ describe('Version component permissions', () => {
versionManagePage.closeVersionDialog();
});
it('[C277203] Should a user with Collaborator permission not be able to upload a new version for a locked file', () => {
contentServices.getDocumentList().rightClickOnRow(lockFileModel.name);
const actionVersion = contentServices.checkContextActionIsVisible('Manage versions');
expect(actionVersion.isEnabled()).toBeFalsy();
});
});
});