Skip to content

Commit

Permalink
update a11y tests for help
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Nov 13, 2023
1 parent e5aa805 commit 920411b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/integration/help.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/integration/home.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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', () => {
Expand Down

0 comments on commit 920411b

Please sign in to comment.