Skip to content

Commit

Permalink
Merge pull request #2442 from alphagov/dependabot/npm_and_yarn/axe-pu…
Browse files Browse the repository at this point in the history
…ppeteer-1.1.1

Bump axe-puppeteer from 1.0.0 to 1.1.1
  • Loading branch information
colinrotherham authored Dec 2, 2022
2 parents 79b7b59 + 69e3648 commit 8379cdd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
11 changes: 9 additions & 2 deletions __tests__/accessiblity_audit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ let baseUrl = 'http://localhost:' + PORT
async function audit (page) {
const axe = new AxePuppeteer(page)
.include('body')
.exclude('#app-site-search__input') // axe reports there is "no label associated with the text field", when there is one.
.exclude('.app-phase-banner') // axe reports that the phase banner is not inside a landmark, which is intentional.
// axe reports there is "no label associated with the text field", when there is one.
.exclude('#app-site-search__input')
// axe reports that the phase banner is not inside a landmark, which is intentional.
.exclude('.app-phase-banner')
// axe reports that the skip link is not inside a landmark, which is intentional.
// https://design-system.service.gov.uk/components/skip-link/#when-to-use-this-component
.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')

const results = await axe.analyze()

Expand Down
18 changes: 10 additions & 8 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@metalsmith/permalinks": "^2.4.1",
"@metalsmith/sass": "^1.2.0",
"accessible-autocomplete": "^2.0.4",
"axe-puppeteer": "^1.0.0",
"axe-puppeteer": "^1.1.1",
"fs-extra": "^10.1.0",
"iframe-resizer": "^3.6.6",
"jest": "^29.3.1",
Expand Down

0 comments on commit 8379cdd

Please sign in to comment.