Merge pull request #3452 from mhajas/KEYCLOAK-3142

KEYCLOAK-3142 Check ResourceType in AdminEvent test
This commit is contained in:
Pavel Drozd 2016-11-02 10:27:54 +01:00 committed by GitHub
commit a0f359c93c

View file

@ -88,6 +88,7 @@ public class AdminEventsTest extends AbstractConsoleTest {
assertEquals(1, resultList.size());
resultList.get(0).findElement(By.xpath("//td[text()='CREATE']"));
resultList.get(0).findElement(By.xpath("//td[text()='clients/" + id + "']"));
resultList.get(0).findElement(By.xpath("//td[text()='CLIENT']"));
adminEventsPage.table().reset();
adminEventsPage.table().filterForm().addOperationType("UPDATE");
@ -97,6 +98,7 @@ public class AdminEventsTest extends AbstractConsoleTest {
assertEquals(1, resultList.size());
resultList.get(0).findElement(By.xpath("//td[text()='UPDATE']"));
resultList.get(0).findElement(By.xpath("//td[text()='clients/" + id + "']"));
resultList.get(0).findElement(By.xpath("//td[text()='CLIENT']"));
adminEventsPage.table().reset();
adminEventsPage.table().filterForm().addOperationType("DELETE");
@ -106,6 +108,7 @@ public class AdminEventsTest extends AbstractConsoleTest {
assertEquals(1, resultList.size());
resultList.get(0).findElement(By.xpath("//td[text()='DELETE']"));
resultList.get(0).findElement(By.xpath("//td[text()='clients/" + id + "']"));
resultList.get(0).findElement(By.xpath("//td[text()='CLIENT']"));
}
public ClientsResource clientsResource() {