[ADF-4849] [APM-1226] - Automate boolean and number visibility conditions (#5043)

* [ADF-4849] [APM-1226] - Automate boolean and number  visibility conditions

* PR changes

* PR changes

* fix e2e and update simpleapp
This commit is contained in:
Silviu Popa
2019-10-30 15:15:54 +02:00
committed by Eugenio Romano
parent 7698fb8edb
commit d02d79c771
5 changed files with 162 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ export class StartProcessPage {
}
async selectOption(name): Promise<void> {
const selectProcessDropdown: ElementFinder = element(by.cssContainingText('.mat-option-text', name));
const selectProcessDropdown: ElementFinder = element(by.xpath(`//mat-option/child::span [text() = ' ${name} ']`));
await BrowserActions.click(selectProcessDropdown);
}
@@ -99,6 +99,7 @@ export class StartProcessPage {
}
async clickFormStartProcessButton(): Promise<void> {
await BrowserVisibility.waitUntilElementIsClickable(this.formStartProcessButton);
await BrowserActions.click(this.formStartProcessButton);
}