Skip to content
Permalink
Browse files
[JENKINS-38928] Simplify assertion
  • Loading branch information
Vlatombe committed Oct 27, 2016
1 parent 0e6815a commit d20f235ad5f18831ac6333155e7b7c48cb718ad2
Showing with 1 addition and 11 deletions.
  1. +1 −11 src/main/java/org/jenkinsci/test/acceptance/po/ConfigurablePageObject.java
@@ -101,16 +101,6 @@ public void save() {

public void apply() {
clickButton("Apply");
waitFor(driver).withTimeout(5, TimeUnit.SECONDS)
.ignoring(
AssertionError.class // Still waiting
)
.until(new Predicate<WebDriver>() {
@Override
public boolean apply(WebDriver driver) {
assertThat(driver, hasContent("Saved"));
return true;
}
});
waitFor(driver, hasContent("Saved"), 5);
}
}

0 comments on commit d20f235

Please sign in to comment.