[ADF-3477]Added a test for task details- no form

This commit is contained in:
Cristina Jalba
2018-10-25 12:38:47 +03:00
parent 72dab2400a
commit d024d0ebf5
5 changed files with 112 additions and 8 deletions

View File

@@ -76,7 +76,10 @@ describe('Start Task - Task App', () => {
taskPage.createNewTask().addName(tasks[0]).clickStartButton()
.then(() => {
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]);
taskPage.formFields().noFormIsDisplayed();
taskPage.taskDetails().noFormIsDisplayed();
taskPage.taskDetails().checkCompleteTaskButtonIsDisplayed().checkCompleteTaskButtonIsEnabled();
taskPage.taskDetails().checkAttachFormButtonIsDisplayed();
taskPage.taskDetails().checkAttachFormButtonIsEnabled();
expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
expect(taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage);
});