[C297472] Should be able to see selected tasks (#4899)

* update

* automated => C297472 see selected rows list and task names when multiselect and testing mode toggle are on.

* automated => C297472 see selected rows list and task names when multiselect and testing mode toggle are on.

* Delete package-lock.json

* updates
This commit is contained in:
Geeta Mandakini Ayyalasomayajula
2019-07-05 11:47:35 +01:00
committed by Eugenio Romano
parent 5ed570b36f
commit 10673ef6f6
2 changed files with 40 additions and 0 deletions

View File

@@ -167,6 +167,22 @@ describe('Task list cloud - selection', () => {
tasksCloudDemoPage.taskListCloudComponent().checkRowIsChecked(tasks[2]);
});
it('[C297472] Should be able to see selected tasks with Multiselection and Testing switched on', () => {
tasksCloudDemoPage.clickSettingsButton().enableMultiSelection();
tasksCloudDemoPage.clickSettingsButton().enableTestingMode();
tasksCloudDemoPage.clickAppButton();
tasksCloudDemoPage.taskListCloudComponent().getDataTable().waitForTableBody();
tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(tasks[0]);
tasksCloudDemoPage.taskListCloudComponent().clickCheckbox(tasks[0]);
tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(tasks[1]);
tasksCloudDemoPage.taskListCloudComponent().clickCheckbox(tasks[1]);
expect(tasksCloudDemoPage.getNoOfSelectedRows()).toBe(2);
expect(tasksCloudDemoPage.getSelectedTaskRowText('1')).toBe(tasks[0]);
expect(tasksCloudDemoPage.getSelectedTaskRowText('2')).toBe(tasks[1]);
});
});
});