diff --git a/e2e/process-services-cloud/start-task-form-cloud.e2e.ts b/e2e/process-services-cloud/start-task-form-cloud.e2e.ts index 0a3e0e1071..5436c231ff 100644 --- a/e2e/process-services-cloud/start-task-form-cloud.e2e.ts +++ b/e2e/process-services-cloud/start-task-form-cloud.e2e.ts @@ -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', () => { diff --git a/e2e/resources/activiti7/candidatebaseapp.zip b/e2e/resources/activiti7/candidatebaseapp.zip deleted file mode 100644 index 1f8e86b76c..0000000000 Binary files a/e2e/resources/activiti7/candidatebaseapp.zip and /dev/null differ diff --git a/lib/testing/src/lib/process-services-cloud/pages/start-tasks-cloud-component.page.ts b/lib/testing/src/lib/process-services-cloud/pages/start-tasks-cloud-component.page.ts index 791fe45259..b583768d03 100644 --- a/lib/testing/src/lib/process-services-cloud/pages/start-tasks-cloud-component.page.ts +++ b/lib/testing/src/lib/process-services-cloud/pages/start-tasks-cloud-component.page.ts @@ -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; + } }