[java-idp-integration-tests] 02/03: Improve error message when exception is thrown
Codeberg
noreply at shibboleth.net
Wed Nov 19 23:06:45 UTC 2025
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-idp-integration-tests.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-integration-tests/commit/9680cadd257bfdc20ee7c7187b7f48958f677e6f
commit 9680cadd257bfdc20ee7c7187b7f48958f677e6f
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Tue Nov 18 19:32:21 2025 -0600
Improve error message when exception is thrown
---
.../java/net/shibboleth/idp/integration/tests/BaseTest.java | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/test/java/net/shibboleth/idp/integration/tests/BaseTest.java b/src/test/java/net/shibboleth/idp/integration/tests/BaseTest.java
index bbe18fc..5f3b3b4 100644
--- a/src/test/java/net/shibboleth/idp/integration/tests/BaseTest.java
+++ b/src/test/java/net/shibboleth/idp/integration/tests/BaseTest.java
@@ -2054,15 +2054,13 @@ public abstract class BaseTest {
/**
* Wait for page whose body contains the given text.
*
- * @param fraction the fraction of the page body text
+ * @param fraction
+ * the fraction of the page body text
*/
public void waitForPageBodyContains(@Nonnull final String fraction) {
Assert.assertNotNull(fraction);
- (new WebDriverWait(driver, Duration.ofSeconds(10))).until(new ExpectedCondition<Boolean>() {
- public Boolean apply(WebDriver d) {
- return d.findElement(By.tagName("body")).getText().contains(fraction);
- }
- });
+ new WebDriverWait(driver, Duration.ofSeconds(10))
+ .until(ExpectedConditions.textToBePresentInElementLocated(By.tagName("body"), fraction));
}
/**
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list