From 928a1a48a7874ff2e101cfac7e51c3837126d2b3 Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Wed, 19 Jun 2024 15:19:20 -0700 Subject: [PATCH] Wait for trace group table to load (#1420) Signed-off-by: Shenoy Pratik --- .../1_trace_analytics_dashboard.spec.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cypress/integration/plugins/observability-dashboards/1_trace_analytics_dashboard.spec.js b/cypress/integration/plugins/observability-dashboards/1_trace_analytics_dashboard.spec.js index 6c1162393..1ff813617 100644 --- a/cypress/integration/plugins/observability-dashboards/1_trace_analytics_dashboard.spec.js +++ b/cypress/integration/plugins/observability-dashboards/1_trace_analytics_dashboard.spec.js @@ -36,6 +36,10 @@ describe('Testing dashboard table', () => { '[data-test-subj="trace-groups-service-operation-accordian"]' ).click(); + cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should( + 'be.visible' + ); + cy.contains(' >= 95 percentile').click({ force: true }); cy.wait(delayTime); cy.contains(' >= 95 percentile').click({ force: true }); @@ -64,6 +68,11 @@ describe('Testing dashboard table', () => { cy.get( '[data-test-subj="trace-groups-service-operation-accordian"]' ).click(); + + cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should( + 'be.visible' + ); + cy.get('.euiButtonIcon[aria-label="Open popover"]').first().click(); cy.get('text.ytitle[data-unformatted="Hourly latency (ms)"]').should( 'exist' @@ -74,6 +83,11 @@ describe('Testing dashboard table', () => { cy.get( '[data-test-subj="trace-groups-service-operation-accordian"]' ).click(); + + cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should( + 'be.visible' + ); + cy.get('[data-test-subj="dashboard-table-traces-button"]') .contains('13') .click(); @@ -100,6 +114,10 @@ describe('Testing plots', () => { cy.get( '[data-test-subj="trace-groups-service-operation-accordian"]' ).click(); + + cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should( + 'be.visible' + ); }); it('Renders plots', () => {