Skip to content

Commit

Permalink
More HtmlUnit fixes in OIDC code flow and multi-tenancy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Jan 3, 2025
1 parent 33c6b36 commit 47c1c07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1923,12 +1923,12 @@ public class CodeFlowAuthorizationTest {
// the test REST endpoint listens on '/code-flow'
HtmlPage page = webClient.getPage("http://localhost:8081/code-flow");
HtmlForm form = page.getFormByName("form");
HtmlForm form = page.getForms().get(0);
// user 'alice' has the 'user' role
form.getInputByName("username").type("alice");
form.getInputByName("password").type("alice");
page = form.getInputByValue("login").click();
page = form.getButtonByName("login").click();
assertEquals("alice", page.getBody().asNormalizedText());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public class CodeFlowTest {
page = loginForm.getButtonByName("login").click();
assertTrue(page.asText().contains("tenant"));
assertTrue(page.asNormalizedText().contains("tenant"));
}
}
Expand All @@ -521,7 +521,7 @@ public class CodeFlowTest {
page = loginForm.getButtonByName("login").click();
assertTrue(page.asText().contains("alice@tenant-a.org"));
assertTrue(page.asNormalizedText().contains("alice@tenant-a.org"));
}
}
Expand Down

0 comments on commit 47c1c07

Please sign in to comment.