Skip to content

Commit

Permalink
fix oidc example after keycloak update
Browse files Browse the repository at this point in the history
  • Loading branch information
jungm committed Nov 19, 2024
1 parent b1427d3 commit 9a68d9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand Down

0 comments on commit 9a68d9f

Please sign in to comment.