Skip to content

Commit

Permalink
support new test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed May 9, 2024
1 parent 08db22a commit 2e2e5a8
Showing 1 changed file with 1 addition and 4 deletions.
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

0 comments on commit 2e2e5a8

Please sign in to comment.