diff --git a/e2e/pageobjects/ide/Ide.ts b/e2e/pageobjects/ide/Ide.ts index 7a050bde6f..24d13a469c 100644 --- a/e2e/pageobjects/ide/Ide.ts +++ b/e2e/pageobjects/ide/Ide.ts @@ -245,19 +245,17 @@ export class Ide { async waitApllicationIsReady(url: string, timeout: number = TestConstants.TS_SELENIUM_DEFAULT_TIMEOUT) { - let res = await axios.get(url); + await this.driverHelper.getDriver().wait(async () => { try { - res = await axios.get(url); + const res = await axios.get(url); if (res.status === 200) { - console.log('Application is ready for use. App url:'); return true; } } catch (error) { - console.log('Application is not yet ready for use'); + await this.driverHelper.wait(TestConstants.TS_SELENIUM_DEFAULT_POLLING); } - await this.driverHelper.wait(TestConstants.TS_SELENIUM_DEFAULT_POLLING); }, timeout); }