[AAE-1729] Move task-process filters methods into adf-testing, refactor dropdowns to use dropdown material testing page (#5467)

* [AAE-1729] Move task-process filters methods into adf-testing

* [AAE-1729] Add default filters methods in testing package

* [AAE-1729] Refactor testing package and e2e to use Dropdown testing page

* [AAE-1729] Rename function

* [AAE-1729] Fix failing e2e, add click and select dropdown method

* [AAE-1729] Fix e2e

* [AAE-1729] fix e2e

* [AAE-1729] Add default filters methods in testing package

* [AAE-1729] Slow down upload speed, fix cancel upload e2e

* [AAE-1729] Undo slow down upload speed, fix cancel upload e2e
This commit is contained in:
arditdomi
2020-02-27 13:51:36 +00:00
committed by GitHub
parent d2ec8ccee7
commit 14529da097
58 changed files with 601 additions and 650 deletions
@@ -76,7 +76,7 @@ describe('Start Task - Task App', () => {
const newTask = await taskPage.createNewTask();
await newTask.addName('View file');
await newTask.addForm(app.formName);
await newTask.selectForm(app.formName);
await newTask.clickStartButton();
await widget.attachFileWidget().attachFile(appFields.attachFile_id, browser.params.testConfig.main.rootPath + pdfFile.location);
@@ -100,7 +100,6 @@ describe('Attach Form Component', () => {
await attachFormPage.checkFormDropdownIsDisplayed();
await attachFormPage.checkCancelButtonIsDisplayed();
await attachFormPage.checkAttachFormButtonIsDisabled();
await attachFormPage.clickAttachFormDropdown();
await attachFormPage.selectAttachFormOption(testNames.formName);
await formFields.checkWidgetIsReadOnlyMode(testNames.widgetTitle);
@@ -116,7 +115,6 @@ describe('Attach Form Component', () => {
await taskPage.tasksListPage().selectRow(testNames.taskName);
await attachFormPage.clickAttachFormButton();
await attachFormPage.clickAttachFormDropdown();
await attachFormPage.selectAttachFormOption(testNames.formName);
await attachFormPage.clickAttachFormButton();
@@ -65,7 +65,7 @@ describe('Form widgets', () => {
const task = await taskPage.createNewTask();
await task.addName(newTask);
await task.addDescription('Description');
await task.addForm(app.formName);
await task.selectForm(app.formName);
await task.clickStartButton();
await taskPage.tasksListPage().checkContentIsDisplayed(newTask);
@@ -101,8 +101,8 @@ describe('Process List Test', () => {
await processListDemoPage.checkAppIdFieldIsDisplayed();
await processListDemoPage.checkProcessInstanceIdFieldIsDisplayed();
await processListDemoPage.checkProcessInstanceIdFieldIsDisplayed();
await processListDemoPage.checkSortFieldIsDisplayed();
await processListDemoPage.checkStateFieldIsDisplayed();
await processListDemoPage.checkSortDropdownIsDisplayed();
await processListDemoPage.checkStateDropdownIsDisplayed();
});
it('[C282006] Should be able to filter processes with App ID', async () => {
+1 -1
View File
@@ -119,7 +119,7 @@ describe('Start Task - Task App', () => {
it('[C268912] Should a standalone task be displayed when removing the form from APS', async () => {
const task = await taskPage.createNewTask();
await task.addName(tasks[3]);
await task.addForm(app.formName);
await task.selectForm(app.formName);
await task.clickStartButton();
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[3]);
@@ -80,7 +80,7 @@ describe('Start Task - Custom App', () => {
const task = await taskPage.createNewTask();
await task.addName(tasks[0]);
await task.addForm(app.formName);
await task.selectForm(app.formName);
await task.clickStartButton();
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]);
@@ -150,7 +150,7 @@ describe('Start Task - Custom App', () => {
const task = await taskPage.createNewTask();
await task.addForm(app.formName);
await task.selectForm(app.formName);
await task.addName(tasks[4]);
await task.clickStartButton();
@@ -89,7 +89,7 @@ describe('Start Task - Task App', () => {
it('[C260383] Should be possible to modify a task', async () => {
const task = await taskPage.createNewTask();
await task.addName(tasks[0]);
await task.addForm(app.formName);
await task.selectForm(app.formName);
await task.clickStartButton();
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]);
const taskDetails = await taskPage.taskDetails();
@@ -129,7 +129,7 @@ describe('Start Task - Task App', () => {
it('[C260423] Should be possible to save filled form', async () => {
const task = await taskPage.createNewTask();
await task.addForm(app.formName);
await task.selectForm(app.formName);
await task.addName(tasks[4]);
await task.clickStartButton();
@@ -103,8 +103,6 @@ describe('Task Details - Form', () => {
await taskDetailsPage.checkAttachFormDropdownIsDisplayed();
await taskDetailsPage.checkAttachFormButtonIsDisabled();
await taskDetailsPage.clickAttachFormDropdown();
await taskDetailsPage.selectAttachFormOption(newForm.name);
await taskDetailsPage.checkSelectedForm(newForm.name);
await taskDetailsPage.checkAttachFormButtonIsEnabled();
@@ -117,8 +115,6 @@ describe('Task Details - Form', () => {
await taskDetailsPage.clickForm();
await taskDetailsPage.checkAttachFormDropdownIsDisplayed();
await taskDetailsPage.clickAttachFormDropdown();
await taskDetailsPage.selectAttachFormOption(newForm.name);
await taskDetailsPage.checkAttachFormButtonIsDisplayed();