diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/discover_advanced_settings.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/discover_advanced_settings.spec.js index 9af242ce3..c06f5ab97 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/discover_advanced_settings.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/discover_advanced_settings.spec.js @@ -430,7 +430,9 @@ describe('discover_advanced_setting', () => { }); it('check refresh data button is displayed when searchOnPageLoad is set as false', function () { - cy.get('.euiButton__text').contains('Refresh data').should('exist'); + cy.get('button.euiButton') + .contains('.euiButton__text', 'Refresh data') + .should('exist'); }); after(() => {