From 25bf162cd50c481b50dc6406f575fe68726c44a2 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Wed, 24 Jul 2024 12:07:33 -0700 Subject: [PATCH] Fix failing a11y test - referencing a removed className - use data-test-subj instead --- .../date_picker/super_date_picker/super_date_picker.a11y.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.a11y.tsx b/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.a11y.tsx index 8742f127480..afb50029634 100644 --- a/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.a11y.tsx +++ b/packages/eui/src/components/date_picker/super_date_picker/super_date_picker.a11y.tsx @@ -63,7 +63,7 @@ describe('EuiSuperDatePicker', () => { }); it('has zero violations when quick select menu is open', () => { - cy.get('button.euiFormControlLayout__prepend').click(); + cy.get('[data-test-subj="superDatePickerToggleQuickMenuButton"]').click(); cy.get('div.euiPanel').contains('Quick select').should('exist'); cy.checkAxe(); });