From f6e7e3e35652c34d6cf8f415062fd3df84bd6fbb Mon Sep 17 00:00:00 2001 From: Anan Zhuang Date: Thu, 14 Nov 2024 18:16:12 -0800 Subject: [PATCH] modify the refresh data button test to use test-data-subj (#1618) Signed-off-by: Anan Co-authored-by: Hailong Cui (cherry picked from commit 491315802096b452983680c230425d2adf814047) --- .../apps/data_explorer/discover_advanced_settings.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {