mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ADF-4350]Fix cloud tests (#4544)
* Fix version-permissions tests * Fix the cloud tests * Fix process-services tests
This commit is contained in:
parent
a37a44cb6f
commit
f152a24dc2
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
|
@ -176,6 +176,14 @@ exports.config = {
|
||||
|
||||
baseUrl: "http://" + HOST,
|
||||
|
||||
params: {
|
||||
config: {
|
||||
oauth2: {
|
||||
clientId: 'activiti'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
framework: 'jasmine2',
|
||||
|
||||
jasmineNodeOpts: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user