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:
Geeta Mandakini Ayyalasomayajula
2019-07-09 15:30:37 +01:00
committed by Eugenio Romano
parent c151d4535c
commit 65dc1a5c31
8 changed files with 388 additions and 78 deletions

View File

@@ -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) {

View File

@@ -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();
}