From 823e6894cacbbab7c51f4307d990429e94ece0e7 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 13 Nov 2023 14:25:39 -0500 Subject: [PATCH] fix help test again --- package-lock.json | 28 ++++++++++++++++++++++------ package.json | 1 + tests/cypress/integration/help.cy.js | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 01b8ed6..54689f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,7 @@ "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^8.10.0", "@wordpress/scripts": "^26.15.0", + "axe-core": "^4.8.2", "cypress": "^13.5.0", "cypress-axe": "^1.5.0", "tailwindcss": "^3.3.3", @@ -6512,9 +6513,9 @@ "dev": true }, "node_modules/axe-core": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", - "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", + "version": "4.8.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.8.2.tgz", + "integrity": "sha512-/dlp0fxyM3R8YW7MFzaHWXrf4zzbr0vaYb23VBFCl83R7nWNPg/yaQw2Dc8jzCMmDVLhSdzH8MjrsuIUuvX+6g==", "dev": true, "engines": { "node": ">=4" @@ -10369,6 +10370,15 @@ "dequal": "^2.0.3" } }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/axe-core": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", + "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/eslint-plugin-jsx-a11y/node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", @@ -27533,9 +27543,9 @@ "dev": true }, "axe-core": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", - "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", + "version": "4.8.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.8.2.tgz", + "integrity": "sha512-/dlp0fxyM3R8YW7MFzaHWXrf4zzbr0vaYb23VBFCl83R7nWNPg/yaQw2Dc8jzCMmDVLhSdzH8MjrsuIUuvX+6g==", "dev": true }, "axios": { @@ -30544,6 +30554,12 @@ "dequal": "^2.0.3" } }, + "axe-core": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", + "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", + "dev": true + }, "emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", diff --git a/package.json b/package.json index 596f030..27834ce 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "@testing-library/cypress": "^10.0.1", "@wordpress/env": "^8.10.0", "@wordpress/scripts": "^26.15.0", + "axe-core": "^4.8.2", "cypress": "^13.5.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 550cb31..7d5411b 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'); });