From b36360e51530a2cd8984267d359b642ac0494e44 Mon Sep 17 00:00:00 2001 From: Aleksandr Shmaraiev Date: Thu, 15 Feb 2024 19:26:55 +0200 Subject: [PATCH] Change 'if' expression in 'OcpUserLoginPage' --- tests/e2e/pageobjects/login/openshift/OcpUserLoginPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/pageobjects/login/openshift/OcpUserLoginPage.ts b/tests/e2e/pageobjects/login/openshift/OcpUserLoginPage.ts index c78fb51721a..a242e5f53b2 100644 --- a/tests/e2e/pageobjects/login/openshift/OcpUserLoginPage.ts +++ b/tests/e2e/pageobjects/login/openshift/OcpUserLoginPage.ts @@ -22,7 +22,7 @@ export class OcpUserLoginPage implements IOcpLoginPage { async login(): Promise { Logger.debug(); - if (OAUTH_CONSTANTS.TS_OCP_LOGIN_PAGE_PROVIDER_TITLE !== '') { + if (await this.ocpLogin.isIdentityProviderLinkVisible()) { await this.ocpLogin.waitAndClickOnLoginProviderTitle(); }