mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
added test for the visible flag both for process list and task list action menu and context menu (#5190)
This commit is contained in:
committed by
Eugenio Romano
parent
ef229dd300
commit
eefc201332
@@ -90,6 +90,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 processCloudDemoPage.clickOnProcessFilters();
|
||||
await processCloudDemoPage.runningProcessesFilter().clickProcessFilter();
|
||||
@@ -101,10 +103,12 @@ describe('Process list cloud', () => {
|
||||
await processCloudDemoPage.processListCloudComponent().checkContentIsDisplayedById(editProcess.entry.id);
|
||||
await processCloudDemoPage.processListCloudComponent().clickOptionsButton(editProcess.entry.id);
|
||||
await expect(await processCloudDemoPage.processListCloudComponent().isCustomActionEnabled('disabledaction')).toBe(false);
|
||||
await expect(await processCloudDemoPage.processListCloudComponent().getNumberOfOptions()).toBe(3);
|
||||
await processCloudDemoPage.processListCloudComponent().clickOnCustomActionMenu('edit');
|
||||
await processCloudDemoPage.checkActionExecuted(editProcess.entry.id, 'edit');
|
||||
await processCloudDemoPage.processListCloudComponent().rightClickOnRow(deleteProcess.entry.id);
|
||||
await expect(await processCloudDemoPage.processListCloudComponent().isCustomActionEnabled('disabledaction')).toBe(false);
|
||||
await expect(await processCloudDemoPage.processListCloudComponent().getNumberOfOptions()).toBe(3);
|
||||
await processCloudDemoPage.processListCloudComponent().clickContextMenuActionNamed('delete');
|
||||
await processCloudDemoPage.checkActionExecuted(deleteProcess.entry.id, 'delete');
|
||||
});
|
||||
|
Reference in New Issue
Block a user