Skip to content

Commit

Permalink
chore: update test-fixtures to fix lazy load (#458)
Browse files Browse the repository at this point in the history
Fixes the broken lazy load iframe tests.

Ref: dequelabs/axe-core-npm#1052

No QA needed.

---------

Co-authored-by: michael-siek <me@michaelsiek.com>
  • Loading branch information
straker and michael-siek authored May 9, 2024
1 parent 4153d91 commit a98f328
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
8 changes: 4 additions & 4 deletions playwright/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions playwright/src/test/java/PlaywrightJavaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,7 @@ public void withOnlyOneInclude() {
AxeResults axeResults = axeBuilder.analyze();

List<String> targets = getTargets(axeResults);

assertTrue(targets.stream().allMatch(selector -> selector.equalsIgnoreCase(".include")));
assertEquals(axeResults.getPasses().get(0).getNodes().size(), 1);
assertTrue(targets.stream().anyMatch(selector -> selector.equalsIgnoreCase(".include")));
}

@Test
Expand All @@ -557,7 +555,6 @@ public void withMultipleIncludes() {

assertTrue(targets.stream().anyMatch(selector -> selector.equalsIgnoreCase(".include")));
assertTrue(targets.stream().anyMatch(selector -> selector.equalsIgnoreCase(".include2")));
assertEquals(axeResults.getPasses().get(0).getNodes().size(), 2);
}

@Test
Expand Down
8 changes: 4 additions & 4 deletions selenium/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a98f328

Please sign in to comment.