diff --git a/package-lock.json b/package-lock.json index 9756312..a36f7e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,6 @@ "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^8.10.0", "@wordpress/scripts": "^26.15.0", - "axe-core": "^4.8.2", "cypress": "^13.4.0", "cypress-axe": "^1.5.0", "tailwindcss": "^3.3.3", diff --git a/package.json b/package.json index e9d3180..b5ef8b0 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^8.10.0", "@wordpress/scripts": "^26.15.0", - "axe-core": "^4.8.2", "cypress": "^13.4.0", "cypress-axe": "^1.5.0", "tailwindcss": "^3.3.3", diff --git a/tests/cypress/integration/help.cy.js b/tests/cypress/integration/help.cy.js index 7d5411b..550cb31 100644 --- a/tests/cypress/integration/help.cy.js +++ b/tests/cypress/integration/help.cy.js @@ -4,10 +4,10 @@ describe('Help Page', () => { before(() => { cy.visit(`/wp-admin/admin.php?page=${Cypress.env('pluginId')}#/help`); + cy.injectAxe(); }); it('Is Accessible', () => { - cy.injectAxe(); cy.wait(500); cy.a11y('.wppm-app-body'); }); diff --git a/tests/cypress/integration/home.cy.js b/tests/cypress/integration/home.cy.js index 8dda053..c185ff9 100644 --- a/tests/cypress/integration/home.cy.js +++ b/tests/cypress/integration/home.cy.js @@ -4,7 +4,6 @@ describe('Home Page', function () { before(() => { cy.visit(`/wp-admin/admin.php?page=${Cypress.env('pluginId')}#/home`); - cy.injectAxe(); }); it('Site Info Exists', () => { @@ -18,8 +17,9 @@ describe('Home Page', function () { }); it('Is Accessible', () => { + cy.injectAxe(); cy.wait(500); - cy.checkA11y('.wppm-app-body'); + cy.a11y('.wppm-app-body'); }); it('Maintenance Mode Section Exists', () => {