Skip to content

Commit

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

Bump axe-core from 4.9.1 to 4.10.0
  • Loading branch information
MartinJJones authored Aug 12, 2024
2 parents 3cd396d + b84cb88 commit 448bd76
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
},
"dependencies": {
"axe-core": "^4.9.1",
"axe-core": "^4.10.0",
"govuk-frontend": "5.1.0",
"govuk-single-consent": "^3.0.9",
"sortablejs": "^1.15.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

within ".component-guide-preview--warning" do
expect(page).to have_selector("h3", text: "ARIA attributes must conform to valid values (aria-valid-attr-value)")
expect(page).to have_selector('h3 a[href*="https://dequeuniversity.com/rules/axe/4.9/aria-valid-attr-value?application=axeAPI"]', text: "(see guidance)")
expect(page).to have_selector('h3 a[href*="https://dequeuniversity.com/rules/axe/4.10/aria-valid-attr-value?application=axeAPI"]', text: "(see guidance)")
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('AccessibilityTest', function () {
problem: 'Elements must meet minimum color contrast ratio thresholds',
html: '<a href="#">Low contrast</a>',
selector: 'a[href="#"]',
helpUrl: 'https://dequeuniversity.com/rules/axe/4.9/color-contrast?application=axeAPI'
helpUrl: 'https://dequeuniversity.com/rules/axe/4.10/color-contrast?application=axeAPI'
})

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

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

AccessibilityTest(TEST_SELECTOR, function (_err, _violations, pageResults) {
expect(pageResults.incompleteWarnings[0].summary).toBe('Elements must meet minimum color contrast ratio thresholds')
expect(pageResults.incompleteWarnings[0].url).toBe('https://dequeuniversity.com/rules/axe/4.9/color-contrast?application=axeAPI')
expect(pageResults.incompleteWarnings[0].url).toBe('https://dequeuniversity.com/rules/axe/4.10/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 @@ -146,7 +146,7 @@ describe('AccessibilityTest', function () {

AccessibilityTest(TEST_SELECTOR, function (_err, _violations, pageResults) {
expect(pageResults.violations[0].summary).toBe('Elements must meet minimum color contrast ratio thresholds')
expect(pageResults.violations[0].url).toBe('https://dequeuniversity.com/rules/axe/4.9/color-contrast?application=axeAPI')
expect(pageResults.violations[0].url).toBe('https://dequeuniversity.com/rules/axe/4.10/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 @@ -167,7 +167,7 @@ describe('AccessibilityTest', function () {
problem: 'Elements must meet minimum color contrast ratio thresholds',
html: '<a href="#">Low contrast</a>',
selector: 'a[href="#"]',
helpUrl: 'https://dequeuniversity.com/rules/axe/4.9/color-contrast?application=axeAPI'
helpUrl: 'https://dequeuniversity.com/rules/axe/4.10/color-contrast?application=axeAPI'
}) +
'\n\n- - -\n\n' +
renderErrorMessage({
Expand All @@ -176,7 +176,7 @@ describe('AccessibilityTest', function () {
problem: 'Images must have alternate text',
html: '<img src="">',
selector: 'img',
helpUrl: 'https://dequeuniversity.com/rules/axe/4.9/image-alt?application=axeAPI'
helpUrl: 'https://dequeuniversity.com/rules/axe/4.10/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 @@ -427,10 +427,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.9.1:
version "4.9.1"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.9.1.tgz#fcd0f4496dad09e0c899b44f6c4bb7848da912ae"
integrity sha512-QbUdXJVTpvUTHU7871ppZkdOLBeGUKBQWHkHrvN2V9IQWGMt61zf3B45BtzjxEJzYuj0JBjBZP/hmYS/R9pmAw==
axe-core@^4.10.0:
version "4.10.0"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.10.0.tgz#d9e56ab0147278272739a000880196cdfe113b59"
integrity sha512-Mr2ZakwQ7XUAjp7pAwQWRhhK8mQQ6JAaNWSjmjxil0R8BPioMtQsTLOolGYkji1rcL++3dCqZA3zWqpT+9Ew6g==

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

0 comments on commit 448bd76

Please sign in to comment.