From d90f8fc748521010d91dbc67a7ce784d92cde2b9 Mon Sep 17 00:00:00 2001 From: Liliia Pelypenko Date: Fri, 21 May 2021 20:45:25 +0900 Subject: [PATCH] feat: bump axe core to 4.2.1 --- __tests__/__snapshots__/index.test.js.snap | 57 ++++++++++---------- __tests__/__snapshots__/reactjs.test.js.snap | 29 +++++----- __tests__/__snapshots__/vuejs.test.js.snap | 18 +++---- package-lock.json | 6 +-- package.json | 2 +- 5 files changed, 52 insertions(+), 60 deletions(-) diff --git a/__tests__/__snapshots__/index.test.js.snap b/__tests__/__snapshots__/index.test.js.snap index ad83204..a6a64fb 100644 --- a/__tests__/__snapshots__/index.test.js.snap +++ b/__tests__/__snapshots__/index.test.js.snap @@ -15,12 +15,11 @@ Fix any of the following: Element does not have an alt attribute aria-label attribute does not exist or is empty aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty - Element has no title attribute or the title attribute is empty - Element's default semantics were not overridden with role=\\"presentation\\" - Element's default semantics were not overridden with role=\\"none\\" + Element has no title attribute + Element's default semantics were not overridden with role=\\"none\\" or role=\\"presentation\\" You can find more information on this issue here: -https://dequeuniversity.com/rules/axe/4.0/image-alt?application=axeAPI +https://dequeuniversity.com/rules/axe/4.2/image-alt?application=axeAPI ──────── @@ -30,13 +29,13 @@ Expected the HTML found at $('img') to have no violations: Received: -\\"All page content must be contained by landmarks (region)\\" +\\"All page content should be contained by landmarks (region)\\" Fix any of the following: Some page content is not contained by landmarks You can find more information on this issue here: -https://dequeuniversity.com/rules/axe/4.0/region?application=axeAPI" +https://dequeuniversity.com/rules/axe/4.2/region?application=axeAPI" `; exports[`jest-axe toHaveNoViolations returns correctly formatted message when violations are present 1`] = ` @@ -77,12 +76,11 @@ Fix any of the following: Element does not have an alt attribute aria-label attribute does not exist or is empty aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty - Element has no title attribute or the title attribute is empty - Element's default semantics were not overridden with role=\\"presentation\\" - Element's default semantics were not overridden with role=\\"none\\" + Element has no title attribute + Element's default semantics were not overridden with role=\\"none\\" or role=\\"presentation\\" You can find more information on this issue here: -https://dequeuniversity.com/rules/axe/4.0/image-alt?application=axeAPI +https://dequeuniversity.com/rules/axe/4.2/image-alt?application=axeAPI Expected the HTML found at $('img[src=\\"http\\\\:\\\\/\\\\/example\\\\.com\\\\/2\\"]') to have no violations: @@ -96,12 +94,11 @@ Fix any of the following: Element does not have an alt attribute aria-label attribute does not exist or is empty aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty - Element has no title attribute or the title attribute is empty - Element's default semantics were not overridden with role=\\"presentation\\" - Element's default semantics were not overridden with role=\\"none\\" + Element has no title attribute + Element's default semantics were not overridden with role=\\"none\\" or role=\\"presentation\\" You can find more information on this issue here: -https://dequeuniversity.com/rules/axe/4.0/image-alt?application=axeAPI +https://dequeuniversity.com/rules/axe/4.2/image-alt?application=axeAPI ──────── @@ -114,14 +111,16 @@ Received: \\"Form elements must have labels (label)\\" Fix any of the following: - aria-label attribute does not exist or is empty - aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty Form element does not have an implicit (wrapped)