Skip to content

Commit

Permalink
Merge pull request #3037 from alphagov/dependabot/npm_and_yarn/axe-co…
Browse files Browse the repository at this point in the history
…re-4.5.0

Bump axe-core from 4.4.3 to 4.5.0
  • Loading branch information
andysellick authored Nov 1, 2022
2 parents 1854ed8 + 794a904 commit 1047096
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"extends": "stylelint-config-gds/scss"
},
"dependencies": {
"axe-core": "^4.4.3",
"axe-core": "^4.5.0",
"govuk-frontend": "^4.3.1",
"sortablejs": "^1.15.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe('AccessibilityTest', function () {
problem: 'Elements must have sufficient color contrast',
html: '<a href="#">Low contrast</a>',
selector: 'a[href="#"]',
helpUrl: 'https://dequeuniversity.com/rules/axe/4.4/color-contrast?application=axeAPI'
helpUrl: 'https://dequeuniversity.com/rules/axe/4.5/color-contrast?application=axeAPI'
})

expect(violations).toBe(errorMessage)
Expand All @@ -136,7 +136,7 @@ describe('AccessibilityTest', function () {
problem: 'Images must have alternate text',
html: '<img src="">',
selector: 'img',
helpUrl: 'https://dequeuniversity.com/rules/axe/4.4/image-alt?application=axeAPI'
helpUrl: 'https://dequeuniversity.com/rules/axe/4.5/image-alt?application=axeAPI'
})

expect(violations).toBe(errorMessage)
Expand All @@ -150,7 +150,7 @@ describe('AccessibilityTest', function () {

AccessibilityTest(TEST_SELECTOR, function (_err, _violations, pageResults) {
expect(pageResults.incompleteWarnings[0].summary).toBe('Elements must have sufficient color contrast')
expect(pageResults.incompleteWarnings[0].url).toBe('https://dequeuniversity.com/rules/axe/4.4/color-contrast?application=axeAPI')
expect(pageResults.incompleteWarnings[0].url).toBe('https://dequeuniversity.com/rules/axe/4.5/color-contrast?application=axeAPI')
expect(pageResults.incompleteWarnings[0].selectors[0].selector[0]).toBe('a[href="#"]')
expect(pageResults.incompleteWarnings[0].selectors[0].reasons[0]).toBe('Element\'s background color could not be determined due to a background image')
done()
Expand All @@ -162,7 +162,7 @@ describe('AccessibilityTest', function () {

AccessibilityTest(TEST_SELECTOR, function (_err, _violations, pageResults) {
expect(pageResults.violations[0].summary).toBe('Elements must have sufficient color contrast')
expect(pageResults.violations[0].url).toBe('https://dequeuniversity.com/rules/axe/4.4/color-contrast?application=axeAPI')
expect(pageResults.violations[0].url).toBe('https://dequeuniversity.com/rules/axe/4.5/color-contrast?application=axeAPI')
expect(pageResults.violations[0].selectors[0].selector[0]).toBe('a[href="#"]')
expect(pageResults.violations[0].selectors[0].reasons[0]).toBe('Element has insufficient color contrast of 1.35 (foreground color: #dddddd, background color: #ffffff, font size: 12.0pt (16px), font weight: normal). Expected contrast ratio of 4.5:1')
done()
Expand All @@ -183,7 +183,7 @@ describe('AccessibilityTest', function () {
problem: 'Elements must have sufficient color contrast',
html: '<a href="#">Low contrast</a>',
selector: 'a[href="#"]',
helpUrl: 'https://dequeuniversity.com/rules/axe/4.4/color-contrast?application=axeAPI'
helpUrl: 'https://dequeuniversity.com/rules/axe/4.5/color-contrast?application=axeAPI'
}) +
'\n\n- - -\n\n' +
renderErrorMessage({
Expand All @@ -192,7 +192,7 @@ describe('AccessibilityTest', function () {
problem: 'Images must have alternate text',
html: '<img src="">',
selector: 'img',
helpUrl: 'https://dequeuniversity.com/rules/axe/4.4/image-alt?application=axeAPI'
helpUrl: 'https://dequeuniversity.com/rules/axe/4.5/image-alt?application=axeAPI'
})
)

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ async@^3.2.3:
resolved "https://registry.yarnpkg.com/async/-/async-3.2.3.tgz#ac53dafd3f4720ee9e8a160628f18ea91df196c9"
integrity sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==

axe-core@^4.4.3:
version "4.4.3"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.3.tgz#11c74d23d5013c0fa5d183796729bc3482bd2f6f"
integrity sha512-32+ub6kkdhhWick/UjvEwRchgoetXqTK14INLqbGm5U2TzBkBNF3nQtLYm8ovxSkQWArjEQvftCKryjZaATu3w==
axe-core@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.5.0.tgz#6efe2ecdba205fcc9d7ddb3d48c2cf630f70eb5e"
integrity sha512-4+rr8eQ7+XXS5nZrKcMO/AikHL0hVqy+lHWAnE3xdHl+aguag8SOQ6eEqLexwLNWgXIMfunGuD3ON1/6Kyet0A==

balanced-match@^1.0.0:
version "1.0.2"
Expand Down

0 comments on commit 1047096

Please sign in to comment.