From 0aa1b37e307d15aee0a5814861f5256669826c3f Mon Sep 17 00:00:00 2001 From: mhajas Date: Fri, 19 Feb 2016 13:24:28 +0100 Subject: [PATCH] Fix DemoExampleAdapterTest --- .../adapter/example/AbstractDemoExampleAdapterTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractDemoExampleAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractDemoExampleAdapterTest.java index 92c5c24fa0..5619885d85 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractDemoExampleAdapterTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractDemoExampleAdapterTest.java @@ -246,7 +246,10 @@ public abstract class AbstractDemoExampleAdapterTest extends AbstractExampleAdap assertTrue(oAuthGrantPage.isCurrent()); loginEventsPage.navigateTo(); - loginPage.form().login(adminUser); + if (!testContext.isAdminLoggedIn()) { + loginPage.form().login(adminUser); + testContext.setAdminLoggedIn(true); + } loginEventsPage.table().filter(); loginEventsPage.table().filterForm().addEventType("REVOKE_GRANT"); loginEventsPage.table().update();