mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Test cases for Edit Folder Directive (#4910)
* added tests for Edit Folder Directive * added tests for Copy and Move actions on no permission folder. * moved the checkDisabled function to BrowserActions to make it reusable. * updated method name
This commit is contained in:
committed by
Eugenio Romano
parent
c151d4535c
commit
65dc1a5c31
@@ -72,8 +72,8 @@ export class DataTableComponentPage {
|
||||
|
||||
clickCheckbox(columnName, columnValue) {
|
||||
const checkbox = this.getRowCheckbox(columnName, columnValue);
|
||||
BrowserVisibility.waitUntilElementIsClickable(checkbox);
|
||||
checkbox.click();
|
||||
BrowserActions.click(checkbox);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkRowIsNotChecked(columnName, columnValue) {
|
||||
|
@@ -54,6 +54,12 @@ export class BrowserActions {
|
||||
elementFinder.sendKeys(text);
|
||||
}
|
||||
|
||||
static async checkIsDisabled(elementFinder: ElementFinder) {
|
||||
BrowserVisibility.waitUntilElementIsVisible(elementFinder);
|
||||
expect(elementFinder.getAttribute('disabled')).toEqual('true');
|
||||
return this;
|
||||
}
|
||||
|
||||
static async closeMenuAndDialogs() {
|
||||
return browser.actions().sendKeys(protractor.Key.ESCAPE).perform();
|
||||
}
|
||||
|
Reference in New Issue
Block a user