[ADF-4106] Permissions Component automated (#4449)

* Permissions Component automated

* linting fixes

* making tests stable

* making tests stable

* making tests stable
This commit is contained in:
gmandakini
2019-03-17 01:15:37 +00:00
committed by Eugenio Romano
parent 94cd14bf71
commit d6f391c40e
8 changed files with 1499 additions and 259 deletions

View File

@@ -43,6 +43,7 @@ export class MetadataViewPage {
multiSwitch = element(by.id(`adf-metadata-multi`));
presetSwitch = element(by.id('adf-toggle-custom-preset'));
defaultPropertiesSwitch = element(by.id('adf-metadata-default-properties'));
closeButton = element(by.cssContainingText('button.mat-button span', 'Close'));
getTitle(): promise.Promise<string> {
Util.waitUntilElementIsVisible(this.title);
@@ -282,4 +283,9 @@ export class MetadataViewPage {
let property = element(by.css('div[data-automation-id="card-' + type + '-label-' + propertyName + '"]'));
Util.waitUntilElementIsNotVisible(property);
}
clickCloseButton() {
Util.waitUntilElementIsVisible(this.closeButton);
this.closeButton.click();
}
}