mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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
@@ -53,6 +53,7 @@ export class TasksCloudDemoPage {
|
||||
iconInputField: ElementFinder = element(by.css('input[placeholder="Icon"]'));
|
||||
addActionButton: ElementFinder = element(by.cssContainingText('button span', 'Add'));
|
||||
disableCheckbox: ElementFinder = element(by.css(`mat-checkbox[formcontrolname='disabled']`));
|
||||
visibleCheckbox: ElementFinder = element(by.css(`mat-checkbox[formcontrolname='visible']`));
|
||||
|
||||
formControllersPage: FormControllersPage = new FormControllersPage();
|
||||
|
||||
@@ -173,6 +174,14 @@ export class TasksCloudDemoPage {
|
||||
await BrowserActions.click(this.addActionButton);
|
||||
}
|
||||
|
||||
async addInvisibleAction(text: string): Promise<void> {
|
||||
await BrowserActions.clearSendKeys(this.keyInputField, text);
|
||||
await BrowserActions.clearSendKeys(this.titleInputField, text);
|
||||
await BrowserActions.clearSendKeys(this.iconInputField, text);
|
||||
await BrowserActions.click(this.visibleCheckbox);
|
||||
await BrowserActions.click(this.addActionButton);
|
||||
}
|
||||
|
||||
async actionAdded(action: string): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(element(by.cssContainingText(`mat-chip`, action)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user