Skip to content

Commit

Permalink
removed Accessibility test from tc8
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdeback committed May 29, 2024
1 parent a502b81 commit b531b69
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/test/java/tests/Playwright_MainTest.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
package tests;

import com.deque.html.axecore.playwright.*;
import com.deque.html.axecore.results.*;
import com.microsoft.playwright.*;
import com.microsoft.playwright.junit.*;
import io.qameta.allure.*;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.*;
import runners.*;

import java.util.*;
import java.util.regex.*;

import static com.microsoft.playwright.assertions.PlaywrightAssertions.*;
import static io.qameta.allure.SeverityLevel.*;
import static org.junit.jupiter.api.Assertions.*;

@UsePlaywright
@ExtendWith(DisplayNameReporter.class)
Expand Down Expand Up @@ -369,12 +365,12 @@ void tc8_Navigation(TestInfo testInfo) {
Page page = context.newPage();
page.navigate("https://playwright.dev");

try {
AxeResults accessibilityScanResults = new AxeBuilder(page).analyze();
assertEquals(Collections.emptyList(), accessibilityScanResults.getViolations());
} catch (Exception e) {
//ignore failure as is expected
}
// try {
// AxeResults accessibilityScanResults = new AxeBuilder(page).analyze();
// assertEquals(Collections.emptyList(), accessibilityScanResults.getViolations());
// } catch (Exception e) {
// //ignore failure as is expected
// }

// Expect a title "to contain" a substring.
assertThat(page).hasTitle(Pattern.compile("Playwright"));
Expand Down

0 comments on commit b531b69

Please sign in to comment.