From e2fdea04a9c4e866f113de23161fdaabe311699d Mon Sep 17 00:00:00 2001 From: Aleksandr Shmaraiev Date: Fri, 2 Aug 2019 17:08:13 +0300 Subject: [PATCH] E2E: Change waiting timeout to increase reliability e2e test (#14106) --- e2e/TestConstants.ts | 4 ++-- e2e/pageobjects/openshift/OcpWebConsolePage.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/TestConstants.ts b/e2e/TestConstants.ts index f39af4c9e0..bc710f8188 100644 --- a/e2e/TestConstants.ts +++ b/e2e/TestConstants.ts @@ -30,9 +30,9 @@ export const TestConstants = { TS_SELENIUM_RESOLUTION_HEIGHT: Number(process.env.TS_SELENIUM_RESOLUTION_HEIGHT) || 1080, /** - * Timeout in milliseconds waiting for install Eclipse Che by OperatorHub UI, "480 000" by default. + * Timeout in milliseconds waiting for install Eclipse Che by OperatorHub UI, "600 000" by default. */ - TS_SELENIUM_INSTALL_ECLIPSE_CHE_TIMEOUT: Number(process.env.TS_SELENIUM_START_WORKSPACE_TIMEOUT) || 480000, + TS_SELENIUM_INSTALL_ECLIPSE_CHE_TIMEOUT: Number(process.env.TS_SELENIUM_START_WORKSPACE_TIMEOUT) || 600000, /** * Timeout in milliseconds waiting for workspace start, "240 000" by default. diff --git a/e2e/pageobjects/openshift/OcpWebConsolePage.ts b/e2e/pageobjects/openshift/OcpWebConsolePage.ts index fa99c13185..34d5de6990 100644 --- a/e2e/pageobjects/openshift/OcpWebConsolePage.ts +++ b/e2e/pageobjects/openshift/OcpWebConsolePage.ts @@ -45,7 +45,7 @@ export class OcpWebConsolePage { async clickOnEclipseCheOperatorIcon () { const catalogEclipseCheOperatorTitleLocator: By = By.css('a[data-test^=eclipse-che-preview-openshift]'); - await this.driverHelper.waitAndClick(catalogEclipseCheOperatorTitleLocator); + await this.driverHelper.waitAndClick(catalogEclipseCheOperatorTitleLocator, TestConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT); } async clickOnInstallEclipseCheButton () { const installEclipsCheOperatorButtonLocator: By = By.xpath('//button[text()=\'Install\']');