[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:
Geeta Mandakini Ayyalasomayajula 2019-07-14 13:11:18 +01:00 committed by Eugenio Romano
parent 48097c4d2a
commit db0a7842a8
3 changed files with 24 additions and 0 deletions

View File

@ -224,6 +224,14 @@ describe('Start Task Form', () => {
taskFormCloudComponent.checkCompleteButtonIsDisplayed(); 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', () => { describe('Start a process with a start event form', () => {

View File

@ -109,4 +109,20 @@ export class StartTasksCloudPage {
const row = element(by.cssContainingText('mat-option span', option)); const row = element(by.cssContainingText('mat-option span', option));
BrowserActions.click(row); 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;
}
} }