Skip to content

Commit 22de7db

Browse files
authored
Check if RedHat identity provider link is visible (#23608)
Signed-off-by: Dmytro Nochevnov <[email protected]>
1 parent 57ef5fe commit 22de7db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/e2e/pageobjects/login/openshift/OcpRedHatLoginPage.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ export class OcpRedHatLoginPage implements ICheLoginPage {
3838
OcpRedHatLoginPage.OPENSHIFT_LOGIN_LANDING_PAGE_BUTTON,
3939
TIMEOUT_CONSTANTS.TS_SELENIUM_LOAD_PAGE_TIMEOUT
4040
);
41-
await this.ocpLogin.waitAndClickOnLoginProviderTitle();
41+
42+
if (await this.ocpLogin.isIdentityProviderLinkVisible()) {
43+
await this.ocpLogin.waitAndClickOnLoginProviderTitle();
44+
}
45+
4246
await this.redHatLogin.waitRedHatLoginWelcomePage();
4347
try {
4448
await this.redHatLogin.waitAndConfirmCookiePolicy();

0 commit comments

Comments
 (0)