mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4105] Role Site Dropdown is Displayed (#4356)
* in progress * C277002 - Role Site Dropdown automated. * C277002 - Role Site Dropdown automated. * async updates * async updates * in progress * fixed errors * Fixing tests * fixed errors
This commit is contained in:
committed by
Eugenio Romano
parent
596e801283
commit
00ba61cdea
@@ -443,4 +443,23 @@ export class ContentListPage {
|
||||
browser.actions().click(row, protractor.Button.RIGHT).perform();
|
||||
Util.waitUntilElementIsVisible(element(by.id('adf-context-menu-content')));
|
||||
}
|
||||
|
||||
clickMenuActionNamed(actionName) {
|
||||
let actionButton = this.checkMenuActionIsVisible(actionName);
|
||||
actionButton.click();
|
||||
}
|
||||
|
||||
checkMenuActionIsVisible(actionName) {
|
||||
let actionButton = element(by.css(`button[data-automation-id='DOCUMENT_LIST.ACTIONS.${actionName}']`));
|
||||
Util.waitUntilElementIsVisible(actionButton);
|
||||
Util.waitUntilElementIsClickable(actionButton);
|
||||
return actionButton;
|
||||
}
|
||||
|
||||
clickRowMenuActionsButton(rowName) {
|
||||
let row = this.getRowByRowName(rowName);
|
||||
Util.waitUntilElementIsVisible(row.element(by.css('.adf-datatable__actions-cell button')));
|
||||
row.element(by.css('.adf-datatable__actions-cell button')).click();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user