Skip to content

Commit

Permalink
test(axe): move inject
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Aug 18, 2023
1 parent 92ba44c commit 6c2b654
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions tests/cypress/specs/accessibility.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,12 @@ const lighthouseOpts = {
};

describe("Accessibility specs", function () {
beforeEach(() => {
cy.injectAxe();
});

context("Landing page", function () {
before(() => {
cy.visit("/");
cy.injectAxe();
});
it("has no critical a11y errors", () => {
// cy.pa11y(pa11yOpts);
// cy.lighthouse(lighthouseOpts);
cy.checkA11y();
});
});
Expand All @@ -37,8 +32,6 @@ describe("Accessibility specs", function () {
cy.visit("/mst");
});
xit("has no critical a11y errors", () => {
cy.pa11y(pa11yOpts);
cy.lighthouse(lighthouseOpts);
cy.checkA11y(null, a11yOpts);
});
});
Expand All @@ -49,8 +42,6 @@ describe("Accessibility specs", function () {
cy.contains("Help").click();
});
xit("has no critical a11y errors", () => {
cy.pa11y(pa11yOpts);
cy.lighthouse(lighthouseOpts);
cy.checkA11y(null, a11yOpts);
});
});
Expand All @@ -61,8 +52,6 @@ describe("Accessibility specs", function () {
helpers.selectAgency();
});
xit("has no critical a11y errors", () => {
cy.pa11y(pa11yOpts);
cy.lighthouse(lighthouseOpts);
cy.checkA11y(null, a11yOpts);
});
});
Expand All @@ -74,8 +63,6 @@ describe("Accessibility specs", function () {
cy.contains("Choose this Benefit").click();
});
xit("has no critical a11y errors", () => {
cy.pa11y(pa11yOpts);
cy.lighthouse(lighthouseOpts);
cy.checkA11y(null, a11yOpts);
});
});
Expand All @@ -87,8 +74,6 @@ describe("Accessibility specs", function () {
helpers.selectCourtesyCard();
});
xit("has no critical a11y errors", () => {
cy.pa11y(pa11yOpts);
cy.lighthouse(lighthouseOpts);
cy.checkA11y(null, a11yOpts);
});
});
Expand All @@ -103,8 +88,6 @@ describe("Accessibility specs", function () {
cy.get("#form-eligibility-verification button[type='submit']").click();
});
xit("has no critical a11y errors", () => {
cy.pa11y(pa11yOpts);
cy.lighthouse(lighthouseOpts);
cy.checkA11y(null, a11yOpts);
});
});
Expand All @@ -120,8 +103,6 @@ describe("Accessibility specs", function () {
cy.visit("/enrollment/success");
});
xit("has no critical a11y errors", () => {
cy.pa11y(pa11yOpts);
cy.lighthouse(lighthouseOpts);
cy.checkA11y(null, a11yOpts);
});
});
Expand Down

0 comments on commit 6c2b654

Please sign in to comment.