mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-30333]FE - [Process-services] Create ADF task form. (#5611)
* [ACA-3033] FE - [Process-services] Create ADF task form. * * Modifed task-from-template * * Refactored details component with the task-form * * Updated unit tests to the recent changes * * Modified task-details component * * Fixed failing tests * * Fixed failing tests* Added doc * * Fixed task-details-form e2e * Fixed failing test on tas-details e2e * * Fixed flaky process-services e2e * * Fixed flaky e2e tests
This commit is contained in:
@@ -22,12 +22,14 @@ import { UsersActions } from '../actions/users.actions';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { AttachFormPage } from '../pages/adf/process-services/attach-form.page';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasks.page';
|
||||
import { TaskDetailsPage } from '../pages/adf/process-services/task-details.page';
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
describe('Attach Form Component', () => {
|
||||
|
||||
const loginPage = new LoginPage();
|
||||
const taskPage = new TasksPage();
|
||||
const taskDetailsPage = new TaskDetailsPage();
|
||||
const attachFormPage = new AttachFormPage();
|
||||
const formFields = new FormFields();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
@@ -83,9 +85,9 @@ describe('Attach Form Component', () => {
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
await taskPage.tasksListPage().selectRow(testNames.taskName);
|
||||
|
||||
await attachFormPage.checkNoFormMessageIsDisplayed();
|
||||
await attachFormPage.checkAttachFormButtonIsDisplayed();
|
||||
await attachFormPage.checkCompleteButtonIsDisplayed();
|
||||
await taskPage.taskDetails().checkStandaloneNoFormMessageIsDisplayed();
|
||||
await taskPage.taskDetails().checkAttachFormButtonIsDisplayed();
|
||||
await taskPage.taskDetails().checkCompleteTaskButtonIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C280048] Should be able to view the attach-form component after clicking cancel button', async () => {
|
||||
@@ -94,7 +96,7 @@ describe('Attach Form Component', () => {
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
await taskPage.tasksListPage().selectRow(testNames.taskName);
|
||||
|
||||
await attachFormPage.clickAttachFormButton();
|
||||
await taskPage.taskDetails().clickAttachFormButton();
|
||||
await attachFormPage.checkDefaultFormTitleIsDisplayed(testNames.formTitle);
|
||||
await attachFormPage.checkFormDropdownIsDisplayed();
|
||||
await attachFormPage.checkCancelButtonIsDisplayed();
|
||||
@@ -104,7 +106,7 @@ describe('Attach Form Component', () => {
|
||||
await formFields.checkWidgetIsReadOnlyMode(testNames.widgetTitle);
|
||||
|
||||
await attachFormPage.clickCancelButton();
|
||||
await attachFormPage.checkAttachFormButtonIsDisplayed();
|
||||
await taskPage.taskDetails().checkAttachFormButtonIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C280017] Should be able to attach a form on a standalone task and complete', async () => {
|
||||
@@ -113,7 +115,7 @@ describe('Attach Form Component', () => {
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
await taskPage.tasksListPage().selectRow(testNames.taskName);
|
||||
|
||||
await attachFormPage.clickAttachFormButton();
|
||||
await taskDetailsPage.clickAttachFormButton();
|
||||
await attachFormPage.selectAttachFormOption(testNames.formName);
|
||||
await attachFormPage.clickAttachFormButton();
|
||||
|
||||
|
Reference in New Issue
Block a user