From 4b8e4894f454f206c911a863e838d8abe00ed14c Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 12:03:58 +0800 Subject: [PATCH] set time range before opening service and operations (#1023) (#1040) Signed-off-by: Yulong Ruan (cherry picked from commit c644c39c1dde2abfff34cf20d79626279d48e4be) Co-authored-by: Yulong Ruan --- .../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();