[TS_SELENIUM] Update methods for waiting application readiness inside of workspace (#15596)

Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
7.20.x
Igor Ohrimenko 2020-01-02 14:10:53 +02:00 committed by GitHub
parent a5dcbfbb70
commit dfdc304120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@ export class DialogWindow {
Logger.debug('DialogWindow.waitDialogAndOpenLink');
await this.waitDialog(timeout, dialogText);
await this.ide.waitApllicationIsReady(await this.getApplicationUrlFromDialog(dialogText));
await this.ide.waitApllicationIsReady(await this.getApplicationUrlFromDialog(dialogText), timeout);
await this.clickToOpenLinkButton();
await this.waitDialogDissappearance();
}

View File

@ -83,7 +83,8 @@ export class Ide {
async waitNotificationAndOpenLink(notificationText: string, timeout: number = TestConstants.TS_SELENIUM_DEFAULT_TIMEOUT) {
Logger.debug(`Ide.waitNotificationAndOpenLink "${notificationText}"`);
await this.waitApllicationIsReady(await this.getApplicationUrlFromNotification(notificationText));
await this.waitNotification(notificationText, timeout);
await this.waitApllicationIsReady(await this.getApplicationUrlFromNotification(notificationText), timeout);
await this.waitNotificationAndClickOnButton(notificationText, 'Open Link', timeout);
}