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();
|
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', () => {
|
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);
|
contentServices.versionManagerContent(differentCreatorFile.name);
|
||||||
|
|
||||||
@ -341,6 +335,12 @@ describe('Version component permissions', () => {
|
|||||||
|
|
||||||
versionManagePage.closeVersionDialog();
|
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();
|
return this.formNameField.getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clickForm() {
|
||||||
|
BrowserVisibility.waitUntilElementIsVisible(this.formNameField);
|
||||||
|
BrowserVisibility.waitUntilElementIsClickable(this.formNameField);
|
||||||
|
this.formNameField.click();
|
||||||
|
}
|
||||||
|
|
||||||
getAssignee() {
|
getAssignee() {
|
||||||
BrowserVisibility.waitUntilElementIsVisible(this.assigneeField);
|
BrowserVisibility.waitUntilElementIsVisible(this.assigneeField);
|
||||||
return this.assigneeField.getText();
|
return this.assigneeField.getText();
|
||||||
|
@ -102,9 +102,7 @@ describe('Task Details - Form', () => {
|
|||||||
|
|
||||||
it('[C280018] Should be able to change the form in a task', () => {
|
it('[C280018] Should be able to change the form in a task', () => {
|
||||||
tasksListPage.selectRow(task.name);
|
tasksListPage.selectRow(task.name);
|
||||||
|
taskDetailsPage.clickForm();
|
||||||
taskDetailsPage.checkEditFormButtonIsDisplayed();
|
|
||||||
taskDetailsPage.clickEditFormButton();
|
|
||||||
|
|
||||||
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
||||||
taskDetailsPage.checkAttachFormButtonIsDisabled();
|
taskDetailsPage.checkAttachFormButtonIsDisabled();
|
||||||
@ -120,8 +118,7 @@ describe('Task Details - Form', () => {
|
|||||||
|
|
||||||
taskDetailsPage.checkFormIsAttached(attachedForm.name);
|
taskDetailsPage.checkFormIsAttached(attachedForm.name);
|
||||||
|
|
||||||
taskDetailsPage.checkEditFormButtonIsDisplayed();
|
taskDetailsPage.clickForm();
|
||||||
taskDetailsPage.clickEditFormButton();
|
|
||||||
|
|
||||||
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
||||||
taskDetailsPage.clickAttachFormDropdown();
|
taskDetailsPage.clickAttachFormDropdown();
|
||||||
@ -136,9 +133,7 @@ describe('Task Details - Form', () => {
|
|||||||
|
|
||||||
it('[C280019] Should be able to remove the form form a task', () => {
|
it('[C280019] Should be able to remove the form form a task', () => {
|
||||||
tasksListPage.selectRow(task.name);
|
tasksListPage.selectRow(task.name);
|
||||||
|
taskDetailsPage.clickForm();
|
||||||
taskDetailsPage.checkEditFormButtonIsDisplayed();
|
|
||||||
taskDetailsPage.clickEditFormButton();
|
|
||||||
|
|
||||||
taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
||||||
taskDetailsPage.clickRemoveAttachForm();
|
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', () => {
|
it('[C280557] Should display task details when selecting another task while the Attach Form dialog is displayed', () => {
|
||||||
tasksListPage.selectRow(task.name);
|
tasksListPage.selectRow(task.name);
|
||||||
|
taskDetailsPage.clickForm();
|
||||||
taskDetailsPage.checkEditFormButtonIsDisplayed();
|
|
||||||
taskDetailsPage.clickEditFormButton();
|
|
||||||
|
|
||||||
taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
||||||
|
|
||||||
|
@ -176,6 +176,14 @@ exports.config = {
|
|||||||
|
|
||||||
baseUrl: "http://" + HOST,
|
baseUrl: "http://" + HOST,
|
||||||
|
|
||||||
|
params: {
|
||||||
|
config: {
|
||||||
|
oauth2: {
|
||||||
|
clientId: 'activiti'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
framework: 'jasmine2',
|
framework: 'jasmine2',
|
||||||
|
|
||||||
jasmineNodeOpts: {
|
jasmineNodeOpts: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user