[AAE-11275] - e2e protractor - remove sleep step (#7944)

* [AAE-11275] - remove sleep step

* trigger travis
This commit is contained in:
Rafal Szmit 2022-11-03 14:08:57 +01:00 committed by GitHub
parent d1c82edb9d
commit 26c1431815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,13 +70,18 @@ export class StartProcessPage {
try {
await this.clickProcessDropdownArrow();
await this.selectProcessOption(name);
await browser.sleep(500);
} catch (error) {
if (retry < 3) {
retry++;
await this.selectFromProcessDropdown(name, retry);
}
}
try {
await BrowserVisibility.waitUntilElementIsVisible($('.mat-card-content'), 2000);
} catch (error) {
Logger.log(`No start form on process`);
}
}
async selectFromApplicationDropdown(name): Promise<void> {