Skip to content

Commit

Permalink
Fix OIDC multi-tab test
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Jul 14, 2023
1 parent e9b0fe6 commit 152f93b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,12 @@ public void testAccessAndRefreshTokenInjectionWithoutIndexHtmlAndListenerMultiTa

doTestAccessAndRefreshTokenInjectionWithoutIndexHtmlAndListener(webClient);

page = loginForm.getInputByName("login").click();

assertTrue(page.getBody().asNormalizedText().contains("You are already logged in"));
try {
page = loginForm.getInputByName("login").click();
} catch (FailingHttpStatusCodeException ex) {
assertEquals(400, ex.getStatusCode());
assertTrue(ex.getResponse().getContentAsString().contains("You are already logged in"));
}
webClient.getCookieManager().clearCookies();
}
}
Expand Down

0 comments on commit 152f93b

Please sign in to comment.