Add logging for violations & testA11y() in utils.ts. Use that method everywhere else

This commit is contained in:
Tim Donohue
2021-09-13 17:11:53 -05:00
parent fad74a4ca2
commit 4faa850fba
16 changed files with 100 additions and 65 deletions

View File

@@ -1,10 +1,10 @@
import { Options } from "cypress-axe";
import { Options } from 'cypress-axe';
import { testA11y } from 'cypress/support/utils';
describe('Community List Page', () => {
it('should pass accessibility tests', () => {
cy.visit('/community-list');
cy.injectAxe();
// <ds-community-list-page> tag must be loaded
cy.get('ds-community-list-page').should('exist');
@@ -14,7 +14,7 @@ describe('Community List Page', () => {
// Analyze <ds-community-list-page> for accessibility issues
// Disable heading-order checks until it is fixed
cy.checkA11y('ds-community-list-page',
testA11y('ds-community-list-page',
{
rules: {
'heading-order': { enabled: false }