Skip to content

Commit

Permalink
Fix Flaky Discover Tests (#1548)
Browse files Browse the repository at this point in the history
Signed-off-by: Suchit Sahoo <suchsah@amazon.com>
(cherry picked from commit 625926c)
  • Loading branch information
LDrago27 authored and github-actions[bot] committed Sep 9, 2024
1 parent 539ab44 commit 4d9e5a7
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand All @@ -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 () {
Expand All @@ -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');
});
Expand Down

0 comments on commit 4d9e5a7

Please sign in to comment.