From 7b07fa53ef67d1a8d898021e462ce87730db98e9 Mon Sep 17 00:00:00 2001 From: Michail Yasonik Date: Tue, 29 Sep 2020 11:56:25 -0400 Subject: [PATCH] Use more specific rule skipping for a11y tests (#77647) --- package.json | 2 +- .../query_string_input/query_string_input.tsx | 1 + .../__snapshots__/new_vis_modal.test.tsx.snap | 24 ------------------- .../public/wizard/new_vis_modal.tsx | 1 - .../wizard/type_selection/type_selection.tsx | 1 - test/accessibility/services/a11y/a11y.ts | 5 ++-- .../services/a11y/analyze_with_axe.js | 21 +++++++++++++++- .../public/components/search_bar.tsx | 3 +++ x-pack/test/accessibility/apps/home.ts | 15 ++++++++---- yarn.lock | 8 +++---- 10 files changed, 42 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index 85af66d98a6ba..bc782a859bf3e 100644 --- a/package.json +++ b/package.json @@ -350,7 +350,7 @@ "angular-route": "^1.8.0", "angular-sortable-view": "^0.0.17", "archiver": "^3.1.1", - "axe-core": "^3.4.1", + "axe-core": "^4.0.2", "babel-eslint": "^10.0.3", "babel-jest": "^25.5.1", "babel-plugin-istanbul": "^6.0.0", diff --git a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx index bbd998c0b74de..ec45b80927f6d 100644 --- a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx +++ b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx @@ -613,6 +613,7 @@ export class QueryStringInputUI extends Component { })} aria-haspopup="true" aria-expanded={this.state.isSuggestionsVisible} + data-skip-axe="aria-required-children" >