From a262fd456e62b4cfda4ed183237bc259b08dbdce Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 17:03:45 -0400 Subject: [PATCH] update trace analytics cypress tests according to observability changes (#775) (#824) * update ftr Signed-off-by: Derek Ho * revert file Signed-off-by: Derek Ho * update with trace analytics accordian changes Signed-off-by: Derek Ho --------- Signed-off-by: Derek Ho (cherry picked from commit 2684558b2a9498badbf588894cc3d5cd251b4145) Co-authored-by: Derek Ho --- .../1_trace_analytics_dashboard.spec.js | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 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 83d0e1971..c67828db9 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 @@ -15,6 +15,9 @@ describe('Testing dashboard table empty state', () => { }, }); cy.wait(delayTime * 3); + cy.get( + '[data-test-subj="trace-groups-service-operation-accordian"]' + ).click(); }); it('Renders empty state', () => { @@ -31,6 +34,9 @@ describe('Testing dashboard table', () => { }, }); setTimeFilter(); + cy.get( + '[data-test-subj="trace-groups-service-operation-accordian"]' + ).click(); }); it('Renders the dashboard table', () => { @@ -73,11 +79,9 @@ describe('Testing dashboard table', () => { }); it('Redirects to traces table with filter', () => { - cy.wait(delayTime); cy.get('.euiLink').contains('13').click(); cy.wait(delayTime); - cy.get('h2.euiTitle').contains('Traces').should('exist'); cy.contains(' (13)').should('exist'); cy.contains('client_create_order').should('exist'); @@ -96,6 +100,9 @@ describe('Testing plots', () => { }, }); setTimeFilter(); + cy.get( + '[data-test-subj="trace-groups-service-operation-accordian"]' + ).click(); }); it('Renders service map', () => { @@ -104,13 +111,13 @@ describe('Testing plots', () => { cy.get('text[data-unformatted="200"]').should('exist'); cy.get('.vis-network').should('exist'); - cy.get('.euiButton__text[title="Error rate"]').click(); - cy.get('text.ytitle[data-unformatted="Error rate"]').should('exist'); - cy.get('text[data-unformatted="10%"]').should('exist'); + cy.get('.euiButton__text[title="Errors"]').click(); + cy.get('text.ytitle[data-unformatted="Error rate (%)"]').should('exist'); - cy.get('.euiButton__text[title="Throughput"]').click(); - cy.get('text.ytitle[data-unformatted="Throughput"]').should('exist'); - cy.get('text[data-unformatted="50"]').should('exist'); + cy.get('.euiButton__text[title="Request Rate"]').click(); + cy.get('text.ytitle[data-unformatted="Request rate (spans)"]').should( + 'exist' + ); cy.get('input[type="search"]').eq(1).focus().type('payment{enter}'); cy.wait(delayTime);