mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ADF-4699] Forms to be used or not used in Standalone tasks (#4886)
* e2e test for ADF-4699 - Allow a form to be used (or not used) in standalone tasks * e2e test for ADF-4699 - Allow a form to be used (or not used) in standalone tasks * test enhancements * replacing the app with forms with standAlone flag in the json.
This commit is contained in:
parent
48097c4d2a
commit
db0a7842a8
@ -224,6 +224,14 @@ describe('Start Task Form', () => {
|
||||
taskFormCloudComponent.checkCompleteButtonIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C311428] Should display the Standalone forms based on the flag set', () => {
|
||||
tasksCloudDemoPage.openNewTaskForm();
|
||||
startTask.checkFormIsDisplayed();
|
||||
startTask.checkFormDefinitionIsNotDisplayed('UploadFileForm');
|
||||
startTask.checkFormDefinitionIsDisplayed('StartEventForm');
|
||||
startTask.checkFormDefinitionIsDisplayed('FormToTestValidations');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('Start a process with a start event form', () => {
|
||||
|
Binary file not shown.
@ -109,4 +109,20 @@ export class StartTasksCloudPage {
|
||||
const row = element(by.cssContainingText('mat-option span', option));
|
||||
BrowserActions.click(row);
|
||||
}
|
||||
|
||||
checkFormDefinitionIsDisplayed(option: string) {
|
||||
BrowserActions.click(this.formDefinitionSelector);
|
||||
const row = element(by.cssContainingText('mat-option span', option));
|
||||
BrowserVisibility.waitUntilElementIsVisible(row);
|
||||
BrowserActions.closeMenuAndDialogs();
|
||||
return this;
|
||||
}
|
||||
|
||||
checkFormDefinitionIsNotDisplayed(option: string) {
|
||||
BrowserActions.click(this.formDefinitionSelector);
|
||||
const row = element(by.cssContainingText('mat-option span', option));
|
||||
BrowserVisibility.waitUntilElementIsNotVisible(row);
|
||||
BrowserActions.closeMenuAndDialogs();
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user