From 9a68d9f8f775be4996a2006abe31de2cb3e02f8c Mon Sep 17 00:00:00 2001 From: Markus Jung Date: Tue, 19 Nov 2024 07:23:42 +0100 Subject: [PATCH] fix oidc example after keycloak update --- .../src/test/java/org/superbiz/openid/SecuredServletTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/security-openid/src/test/java/org/superbiz/openid/SecuredServletTest.java b/examples/security-openid/src/test/java/org/superbiz/openid/SecuredServletTest.java index 4f310ed7aeb..848b4ef9593 100644 --- a/examples/security-openid/src/test/java/org/superbiz/openid/SecuredServletTest.java +++ b/examples/security-openid/src/test/java/org/superbiz/openid/SecuredServletTest.java @@ -70,7 +70,7 @@ public void test() throws Exception { HtmlForm loginForm = htmlPage.getForms().get(0); loginForm.getInputByName("username").setValue("tomee-user"); loginForm.getInputByName("password").setValue("tomee"); - TextPage securedServletPage = loginForm.getInputByName("login").click(); + TextPage securedServletPage = loginForm.getButtonByName("login").click(); assertEquals("Hello, tomee-user", securedServletPage.getContent()); } @@ -86,7 +86,7 @@ public void adminRoleMapped() throws Exception { HtmlForm loginForm = htmlPage.getForms().get(0); loginForm.getInputByName("username").setValue("tomee-admin"); loginForm.getInputByName("password").setValue("tomee"); - TextPage securedServletPage = loginForm.getInputByName("login").click(); + TextPage securedServletPage = loginForm.getButtonByName("login").click(); assertEquals("Hello, tomee-admin\nYou're an admin!", securedServletPage.getContent()); }