added test for the visible flag both for process list and task list action menu and context menu (#5190)

This commit is contained in:
Geeta Mandakini Ayyalasomayajula
2019-10-25 01:07:18 +01:00
committed by Eugenio Romano
parent ef229dd300
commit eefc201332
5 changed files with 29 additions and 2 deletions

View File

@@ -98,6 +98,8 @@ describe('Process list cloud', () => {
await tasksCloudDemoPage.actionAdded('delete');
await tasksCloudDemoPage.addDisabledAction('disabledaction');
await tasksCloudDemoPage.actionAdded('disabledaction');
await tasksCloudDemoPage.addInvisibleAction('invisibleaction');
await tasksCloudDemoPage.actionAdded('invisibleaction');
await tasksCloudDemoPage.clickAppButton();
await tasksCloudDemoPage.editTaskFilterCloudComponent().openFilter();
await tasksCloudDemoPage.myTasksFilter().checkTaskFilterIsDisplayed();
@@ -109,10 +111,12 @@ describe('Process list cloud', () => {
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedById(editTask.list.entries[0].entry.id);
await tasksCloudDemoPage.taskListCloudComponent().clickOptionsButton(editTask.list.entries[0].entry.id);
await expect(await tasksCloudDemoPage.taskListCloudComponent().isCustomActionEnabled('disabledaction')).toBe(false);
await expect(await tasksCloudDemoPage.taskListCloudComponent().getNumberOfOptions()).toBe(3);
await tasksCloudDemoPage.taskListCloudComponent().clickOnCustomActionMenu('edit');
await tasksCloudDemoPage.checkActionExecuted(editTask.list.entries[0].entry.id, 'edit');
await tasksCloudDemoPage.taskListCloudComponent().rightClickOnRow(deleteTask.list.entries[0].entry.id);
await expect(await tasksCloudDemoPage.taskListCloudComponent().isCustomActionEnabled('disabledaction')).toBe(false);
await expect(await tasksCloudDemoPage.taskListCloudComponent().getNumberOfOptions()).toBe(3);
await tasksCloudDemoPage.taskListCloudComponent().clickContextMenuActionNamed('delete');
await tasksCloudDemoPage.checkActionExecuted(deleteTask.list.entries[0].entry.id, 'delete');
});