[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();
});
});
});

View File

@ -157,6 +157,12 @@ export class TaskDetailsPage {
return this.formNameField.getText();
}
clickForm() {
BrowserVisibility.waitUntilElementIsVisible(this.formNameField);
BrowserVisibility.waitUntilElementIsClickable(this.formNameField);
this.formNameField.click();
}
getAssignee() {
BrowserVisibility.waitUntilElementIsVisible(this.assigneeField);
return this.assigneeField.getText();

View File

@ -102,9 +102,7 @@ describe('Task Details - Form', () => {
it('[C280018] Should be able to change the form in a task', () => {
tasksListPage.selectRow(task.name);
taskDetailsPage.checkEditFormButtonIsDisplayed();
taskDetailsPage.clickEditFormButton();
taskDetailsPage.clickForm();
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
taskDetailsPage.checkAttachFormButtonIsDisabled();
@ -120,8 +118,7 @@ describe('Task Details - Form', () => {
taskDetailsPage.checkFormIsAttached(attachedForm.name);
taskDetailsPage.checkEditFormButtonIsDisplayed();
taskDetailsPage.clickEditFormButton();
taskDetailsPage.clickForm();
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
taskDetailsPage.clickAttachFormDropdown();
@ -136,9 +133,7 @@ describe('Task Details - Form', () => {
it('[C280019] Should be able to remove the form form a task', () => {
tasksListPage.selectRow(task.name);
taskDetailsPage.checkEditFormButtonIsDisplayed();
taskDetailsPage.clickEditFormButton();
taskDetailsPage.clickForm();
taskDetailsPage.checkRemoveAttachFormIsDisplayed();
taskDetailsPage.clickRemoveAttachForm();
@ -150,9 +145,7 @@ describe('Task Details - Form', () => {
it('[C280557] Should display task details when selecting another task while the Attach Form dialog is displayed', () => {
tasksListPage.selectRow(task.name);
taskDetailsPage.checkEditFormButtonIsDisplayed();
taskDetailsPage.clickEditFormButton();
taskDetailsPage.clickForm();
taskDetailsPage.checkRemoveAttachFormIsDisplayed();

View File

@ -176,6 +176,14 @@ exports.config = {
baseUrl: "http://" + HOST,
params: {
config: {
oauth2: {
clientId: 'activiti'
}
}
},
framework: 'jasmine2',
jasmineNodeOpts: {