From dcaf7ea9d5bd1b9afba4480eb972d7868ec5d25b Mon Sep 17 00:00:00 2001 From: mhajas Date: Thu, 10 Dec 2015 11:46:40 +0100 Subject: [PATCH] Fix test errors caused by changed DataTable fragment --- .../adapter/example/AbstractDemoExampleAdapterTest.java | 4 ++-- .../adapter/example/AbstractJSConsoleExampleAdapterTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 2a48dac6f4..4672978a49 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 @@ -243,7 +243,7 @@ public abstract class AbstractDemoExampleAdapterTest extends AbstractExampleAdap List resultList = loginEventsPage.table().rows(); - assertEquals(2, resultList.size()); + assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='REVOKE_GRANT']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='account']")); @@ -255,7 +255,7 @@ public abstract class AbstractDemoExampleAdapterTest extends AbstractExampleAdap loginEventsPage.table().update(); resultList = loginEventsPage.table().rows(); - assertEquals(7, resultList.size()); + assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='LOGIN']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='customer-portal']")); diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java index 5b7888c795..6eeca5dff1 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java @@ -214,7 +214,7 @@ public abstract class AbstractJSConsoleExampleAdapterTest extends AbstractExampl List resultList = loginEventsPage.table().rows(); - assertEquals(2, resultList.size()); + assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='REVOKE_GRANT']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='account']")); @@ -226,7 +226,7 @@ public abstract class AbstractJSConsoleExampleAdapterTest extends AbstractExampl loginEventsPage.table().update(); resultList = loginEventsPage.table().rows(); - assertEquals(7, resultList.size()); + assertEquals(1, resultList.size()); resultList.get(0).findElement(By.xpath(".//td[text()='LOGIN']")); resultList.get(0).findElement(By.xpath(".//td[text()='Client']/../td[text()='js-console']"));