Skip to content

Commit

Permalink
test: Make test compatible with Spring boot 2.6 (#979)
Browse files Browse the repository at this point in the history
Artur- authored Dec 16, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 811b0a0 commit bb5ff2c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -329,8 +329,10 @@ protected void refresh() {
}

private void assertForbiddenPage() {
assertPageContains(
"There was an unexpected error (type=Forbidden, status=403).");
String source = getDriver().getPageSource();
Assert.assertTrue(source.contains(
"There was an unexpected error (type=Forbidden, status=403).")
|| source.contains("HTTP Status 403"));
}

private void assertPageContains(String contents) {

0 comments on commit bb5ff2c

Please sign in to comment.