From 79774d2f0730593d504072aaabb1b87d77e3968c Mon Sep 17 00:00:00 2001 From: vmuzikar Date: Mon, 13 Aug 2018 12:37:11 +0200 Subject: [PATCH] KEYCLOAK-8035 Fix failing GitLab Social Login test --- .../keycloak/testsuite/pages/social/GitLabLoginPage.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/GitLabLoginPage.java b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/GitLabLoginPage.java index 34fb4b66fe..6cc5d32026 100644 --- a/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/GitLabLoginPage.java +++ b/testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/social/GitLabLoginPage.java @@ -45,6 +45,12 @@ public class GitLabLoginPage extends AbstractSocialLoginPage { catch (NoSuchElementException e) { // already logged in } - authorizeButton.click(); + + try { + authorizeButton.click(); + } + catch (NoSuchElementException e) { + // might not be necessary + } } }