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 c06f5ab97..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,9 +430,7 @@ describe('discover_advanced_setting', () => { }); it('check refresh data button is displayed when searchOnPageLoad is set as false', function () { - cy.get('button.euiButton') - .contains('.euiButton__text', 'Refresh data') - .should('exist'); + cy.get('[data-test-subj="discover-refreshDataButton"]').should('exist'); }); after(() => {