Skip to content

Commit

Permalink
[JENKINS-38928] Simplify assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Oct 27, 2016
1 parent 0e6815a commit d20f235
Showing 1 changed file with 1 addition and 11 deletions.
Expand Up @@ -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.