From 853a8ead80757f2da51ce61effc1f31c3da653a4 Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Fri, 3 Nov 2023 18:46:22 +0100 Subject: [PATCH] chore: update ACT tests (#4233) --- package-lock.json | 8 ++++---- package.json | 2 +- test/act-rules/aria-required-id-references-in6db8.spec.js | 7 +++++++ .../act-rules/letter-spacing-not-important-24afc2.spec.js | 7 ++++++- test/act-rules/meta-viewport-b4f0c3.spec.js | 7 ++++++- test/act-rules/word-spacing-not-important-9e45ec.spec.js | 8 +++++++- 6 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 test/act-rules/aria-required-id-references-in6db8.spec.js diff --git a/package-lock.json b/package-lock.json index a61fc45332..ff1ce315df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -74,7 +74,7 @@ "typedarray": "^0.0.7", "typescript": "^5.2.2", "uglify-js": "^3.17.4", - "wcag-act-rules": "github:w3c/wcag-act-rules#2341a1b", + "wcag-act-rules": "github:w3c/wcag-act-rules#485104c", "weakmap-polyfill": "^2.0.4" }, "engines": { @@ -12123,7 +12123,7 @@ } }, "node_modules/wcag-act-rules": { - "resolved": "git+ssh://git@github.com/w3c/wcag-act-rules.git#2341a1ba4d47bc4cdccd5a3b7534e67b52c59002", + "resolved": "git+ssh://git@github.com/w3c/wcag-act-rules.git#485104c5c9a87a15b6a2a6ee1993b5e8259ba00f", "dev": true }, "node_modules/wcwidth": { @@ -21596,9 +21596,9 @@ } }, "wcag-act-rules": { - "version": "git+ssh://git@github.com/w3c/wcag-act-rules.git#2341a1ba4d47bc4cdccd5a3b7534e67b52c59002", + "version": "git+ssh://git@github.com/w3c/wcag-act-rules.git#485104c5c9a87a15b6a2a6ee1993b5e8259ba00f", "dev": true, - "from": "wcag-act-rules@github:w3c/wcag-act-rules#2341a1b" + "from": "wcag-act-rules@github:w3c/wcag-act-rules#485104c" }, "wcwidth": { "version": "1.0.1", diff --git a/package.json b/package.json index 967e00e0b6..878bf3d12c 100644 --- a/package.json +++ b/package.json @@ -174,7 +174,7 @@ "typedarray": "^0.0.7", "typescript": "^5.2.2", "uglify-js": "^3.17.4", - "wcag-act-rules": "github:w3c/wcag-act-rules#2341a1b", + "wcag-act-rules": "github:w3c/wcag-act-rules#485104c", "weakmap-polyfill": "^2.0.4" }, "lint-staged": { diff --git a/test/act-rules/aria-required-id-references-in6db8.spec.js b/test/act-rules/aria-required-id-references-in6db8.spec.js new file mode 100644 index 0000000000..7ad958bdaa --- /dev/null +++ b/test/act-rules/aria-required-id-references-in6db8.spec.js @@ -0,0 +1,7 @@ +require('./act-runner.js')({ + id: 'in6db8', + title: 'ARIA required ID references exist', + axeRules: ['aria-valid-attr-value'], + // See: https://github.com/dequelabs/axe-core/issues/4202 + skipTests: ['97bd98302238b32e9131d042174502a83db2a4b2'] +}); diff --git a/test/act-rules/letter-spacing-not-important-24afc2.spec.js b/test/act-rules/letter-spacing-not-important-24afc2.spec.js index 23409e7e2d..46809876d1 100644 --- a/test/act-rules/letter-spacing-not-important-24afc2.spec.js +++ b/test/act-rules/letter-spacing-not-important-24afc2.spec.js @@ -1,5 +1,10 @@ require('./act-runner.js')({ id: '24afc2', title: 'Letter spacing in style attributes is not !important', - axeRules: ['avoid-inline-spacing'] + axeRules: ['avoid-inline-spacing'], + // See: https://github.com/dequelabs/axe-core/issues/4232 + skipTests: [ + '9af5662e9957191c22c558a1a8511bae709a2b36', + 'd6d5bf7c081939e64d10022dd29f5e31d2153d50' + ] }); diff --git a/test/act-rules/meta-viewport-b4f0c3.spec.js b/test/act-rules/meta-viewport-b4f0c3.spec.js index 1c7aecc28d..82e0bd19dc 100644 --- a/test/act-rules/meta-viewport-b4f0c3.spec.js +++ b/test/act-rules/meta-viewport-b4f0c3.spec.js @@ -1,5 +1,10 @@ require('./act-runner.js')({ id: 'b4f0c3', title: 'meta viewport allows for zoom', - axeRules: ['meta-viewport'] + axeRules: ['meta-viewport'], + // See: https://github.com/dequelabs/axe-core/issues/4231 + skipTests: [ + '9f288c284df9ade53aa33e50ec50c879d5aba4ef', + 'c94a59f8c3b17d722781af36da3556ff4b418776' + ] }); diff --git a/test/act-rules/word-spacing-not-important-9e45ec.spec.js b/test/act-rules/word-spacing-not-important-9e45ec.spec.js index abb5df1573..bb395f82f8 100644 --- a/test/act-rules/word-spacing-not-important-9e45ec.spec.js +++ b/test/act-rules/word-spacing-not-important-9e45ec.spec.js @@ -1,5 +1,11 @@ require('./act-runner.js')({ id: '9e45ec', title: 'Word spacing in style attributes is not !important', - axeRules: ['avoid-inline-spacing'] + axeRules: ['avoid-inline-spacing'], + // See: https://github.com/dequelabs/axe-core/issues/4232 + skipTests: [ + '15905a239d6755102be6a60aa152ad963d5b1dbb', + '8d2baed183149375922c23a9a5f42b52b627d713', + 'fdd3c30f28464b32eb8a1397f70a41dfd3b2cb1c' + ] });