Skip to content

Commit

Permalink
Turn off axe iframe example reporting
Browse files Browse the repository at this point in the history
This matches axe behaviour from previous releases, but see discussion: #2442 (comment)
  • Loading branch information
colinrotherham committed Jan 13, 2023
1 parent 83e3ae7 commit 615ee15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion __tests__/accessiblity-audit.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const { AxePuppeteer } = require('@axe-core/puppeteer')

const { setupPage } = require('../lib/jest-utilities.js')
Expand All @@ -24,6 +23,10 @@ async function analyze (path) {
.exclude('.govuk-skip-link')
// axe reports that the back to top button is not inside a landmark, which is intentional.
.exclude('.app-back-to-top')
// axe reports that the frame "does not have a main landmark" and example <h1> headings
// violate "Heading levels should only increase by one", which is intentional.
// https://github.com/alphagov/govuk-design-system/pull/2442#issuecomment-1326600528
.exclude('.app-example__frame')

return axe.analyze()
}
Expand Down

0 comments on commit 615ee15

Please sign in to comment.