From b243f17dd2f73a0c5f122f42a494db63c15d484c Mon Sep 17 00:00:00 2001 From: Suchit Sahoo <38322563+LDrago27@users.noreply.github.com> Date: Mon, 9 Sep 2024 11:11:55 -0700 Subject: [PATCH] Fix Flaky Discover Tests (#1548) Signed-off-by: Suchit Sahoo Signed-off-by: Kapian1234 --- .../data_explorer/discover_advanced_settings.spec.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 13a372837..9af242ce3 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 @@ -323,6 +323,8 @@ describe('discover_advanced_setting', () => { it('check new table respects doc_table:highlight setting', function () { // check if we have highlighted fields + cy.get('mark').should('exist'); + cy.setAdvancedSetting({ 'doc_table:highlight': false, }); @@ -335,8 +337,6 @@ describe('discover_advanced_setting', () => { 'doc_table:highlight': true, }); cy.reload(); - cy.switchDiscoverTable('new'); - cy.get('mark').should('exist'); }); it('check legacy table respects doc_table:highlight setting', function () { @@ -354,6 +354,12 @@ describe('discover_advanced_setting', () => { 'doc_table:highlight': true, }); cy.reload(); + cy.get('[data-test-subj="fieldToggle-index"]') + .click() + .then(() => { + cy.get('[data-test-subj="field-index-showDetails"]').click(); + cy.get('[data-test-subj="plus-index-logstash-2015.09.22"]').click(); + }); cy.get('mark').should('exist'); });