mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-1767] [ADF] - Convert C329803 and C329800 cases (#7170)
This commit is contained in:
@@ -57,6 +57,13 @@ describe('Attach Form Component', () => {
|
||||
formFieldValue: 'Test value'
|
||||
};
|
||||
|
||||
const standaloneTask = {
|
||||
taskName: 'Standalone Task',
|
||||
formTitle: 'Select Form To Attach',
|
||||
formName: 'Simple form',
|
||||
widgetTitle: 'textfield'
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
|
||||
@@ -69,6 +76,7 @@ describe('Attach Form Component', () => {
|
||||
appModel = await applicationService.importPublishDeployApp(app.file_path);
|
||||
|
||||
await taskUtil.createStandaloneTask(testNames.taskName);
|
||||
await taskUtil.createStandaloneTask(standaloneTask.taskName);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
@@ -126,4 +134,35 @@ describe('Attach Form Component', () => {
|
||||
|
||||
await expect(await formFields.getFieldValue(formTextField)).toEqual(testNames.formFieldValue);
|
||||
});
|
||||
|
||||
it('[C329804] Attach form from standalone task with no form template', async () => {
|
||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
|
||||
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
await taskPage.tasksListPage().selectRow(standaloneTask.taskName);
|
||||
|
||||
await taskPage.taskDetails().clickAttachFormButton();
|
||||
await attachFormPage.checkDefaultFormTitleIsDisplayed(standaloneTask.formTitle);
|
||||
await attachFormPage.checkCancelButtonIsDisplayed();
|
||||
await attachFormPage.checkAttachFormButtonIsDisabled();
|
||||
await attachFormPage.openDropDownForms();
|
||||
await attachFormPage.checkFormDropdownIsDisplayed();
|
||||
await attachFormPage.selectAttachFormOption(standaloneTask.formName);
|
||||
await formFields.checkWidgetIsReadOnlyMode(standaloneTask.widgetTitle);
|
||||
await attachFormPage.clickCancelButton();
|
||||
|
||||
await taskPage.taskDetails().checkAttachFormButtonIsDisplayed();
|
||||
|
||||
await taskDetailsPage.clickAttachFormButton();
|
||||
await attachFormPage.checkDefaultFormTitleIsDisplayed(standaloneTask.formTitle);
|
||||
await attachFormPage.checkCancelButtonIsDisplayed();
|
||||
await attachFormPage.checkAttachFormButtonIsDisabled();
|
||||
await attachFormPage.openDropDownForms();
|
||||
await attachFormPage.checkFormDropdownIsDisplayed();
|
||||
await attachFormPage.selectAttachFormOption(standaloneTask.formName);
|
||||
await formFields.checkWidgetIsReadOnlyMode(standaloneTask.widgetTitle);
|
||||
await attachFormPage.clickAttachFormButton();
|
||||
|
||||
await taskPage.taskDetails().checkAttachFormButtonIsNotDisplayed();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user