Skip to content

Commit

Permalink
timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed May 9, 2024
1 parent a5c5475 commit 5b53728
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,10 @@ public void putsBackPageLoad() {
}

@Test
public void withUnloadedIframes() throws InterruptedException {
public void withUnloadedIframes() {
webDriver.get(fixture("/lazy-loaded-iframe.html"));
String title = webDriver.getTitle();
webDriver.wait(1000);
webDriver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(1));
AxeBuilder axeBuilder = new AxeBuilder()
.withOnlyRules(Arrays.asList("label", "frame-tested"));
Results axeResults = axeBuilder.analyze(webDriver);
Expand All @@ -648,7 +648,7 @@ public void withUnloadedIframes() throws InterruptedException {
assertEquals(axeResults.getIncomplete().get(0).getId(), "frame-tested");
assertEquals(axeResults.getIncomplete().get(0).getNodes().size(), 1);
assertTargetEquals(
axeResults.getIncomplete().get(0).getNodes().get(0).getTarget(),
axeResults.getIncomplete().get(0).getNodes().get(1).getTarget(),
expected
);
} else {
Expand Down

0 comments on commit 5b53728

Please sign in to comment.