From 1c8de737d6426204f3f52655b2992e0f9dd939ac Mon Sep 17 00:00:00 2001 From: Yulong Ruan Date: Fri, 2 Feb 2024 08:04:45 +0800 Subject: [PATCH] set time range before opening service and operations (#1023) Signed-off-by: Yulong Ruan (cherry picked from commit c644c39c1dde2abfff34cf20d79626279d48e4be) --- .../1_trace_analytics_dashboard.spec.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 b70a2ba27..33c685ef4 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 @@ -29,12 +29,13 @@ describe('Testing dashboard table', () => { }, }); setTimeFilter(); + }); + + it('Adds the percentile filters', () => { cy.get( '[data-test-subj="trace-groups-service-operation-accordian"]' ).click(); - }); - it('Adds the percentile filters', () => { cy.contains(' >= 95 percentile').click({ force: true }); cy.wait(delayTime); cy.contains(' >= 95 percentile').click({ force: true }); @@ -60,6 +61,9 @@ describe('Testing dashboard table', () => { it('Opens latency trend popover', () => { setTimeFilter(true); + cy.get( + '[data-test-subj="trace-groups-service-operation-accordian"]' + ).click(); cy.get('.euiButtonIcon[aria-label="Open popover"]').first().click(); cy.get('text.ytitle[data-unformatted="Hourly latency (ms)"]').should( 'exist' @@ -67,6 +71,9 @@ describe('Testing dashboard table', () => { }); it('Redirects to traces table with filter', () => { + cy.get( + '[data-test-subj="trace-groups-service-operation-accordian"]' + ).click(); cy.get('[data-test-subj="dashboard-table-traces-button"]') .contains('13') .click();