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..55cbed79b 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,7 @@ 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('[data-test-subj="discover-refreshDataButton"]').should('exist'); }); after(() => {