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(); });