From f1c32f9d48a9b00c50a2b2eba9d103da4563e449 Mon Sep 17 00:00:00 2001 From: Anan Zhuang Date: Thu, 31 Oct 2024 17:35:27 -0700 Subject: [PATCH] make modifyColumnsOnSwitc test more robust (#1615) Signed-off-by: Anan --- .../apps/data_explorer/discover_advanced_settings.spec.js | 4 +++- 1 file changed, 3 insertions(+), 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..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(() => {