From afed213422e7779f7ce3fe807a8be527cff579db Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Mon, 23 Jan 2023 14:31:41 -0500 Subject: [PATCH] Fix trace analytics cypress (#213) * fix up trace analytics files Signed-off-by: Derek Ho * fix constants file Signed-off-by: Derek Ho Signed-off-by: Derek Ho --- .../integration/4_trace_analytics_dashboard.spec.js | 12 ++++++------ .cypress/utils/constants.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.cypress/integration/4_trace_analytics_dashboard.spec.js b/.cypress/integration/4_trace_analytics_dashboard.spec.js index f9bfb5760..714a3aef9 100644 --- a/.cypress/integration/4_trace_analytics_dashboard.spec.js +++ b/.cypress/integration/4_trace_analytics_dashboard.spec.js @@ -201,12 +201,12 @@ describe('Latency by trace group table', () =>{ it('Verify columns in Latency by trace group table along with pagination functionality', () => { cy.get('span.panel-title').eq(0).should('exist'); cy.wait(delay); - cy.get('span[title="Trace group name"]').should('exist'); - cy.get('span[title="Latency variance (ms)"]').should('exist'); - cy.get('span[title="Average latency (ms)"]').should('exist'); - cy.get('span[title="24-hour latency trend"]').should('exist'); - cy.get('span[title="Error rate"] .euiToolTipAnchor').should('exist'); - cy.get('span[title="Traces"] .euiToolTipAnchor').should('exist'); + cy.get('[data-test-subj="tableHeaderCell_dashboard_trace_group_name_0"]').should('exist'); + cy.get('[data-test-subj="tableHeaderCell_dashboard_latency_variance_1"]').should('exist'); + cy.get('[data-test-subj="tableHeaderCell_dashboard_average_latency_2"]').should('exist'); + cy.get('[data-test-subj="tableHeaderCell_24_hour_latency_trend_3"]').should('exist'); + cy.get('[data-test-subj="tableHeaderCell_dashboard_error_rate_4"]').should('exist'); + cy.get('[data-test-subj="tableHeaderCell_dashboard_traces_5"]').should('exist'); cy.get('[data-test-subj="tablePaginationPopoverButton"]').click(); cy.get('.euiIcon.euiIcon--medium.euiIcon--inherit.euiContextMenu__icon').eq(0).should('exist').click(); cy.get('[data-test-subj="pagination-button-next"]').should('exist').click(); diff --git a/.cypress/utils/constants.js b/.cypress/utils/constants.js index 415679aba..58974876b 100644 --- a/.cypress/utils/constants.js +++ b/.cypress/utils/constants.js @@ -14,18 +14,18 @@ export const SERVICE_SPAN_ID = '7df5609a6d104736'; export const testDataSet = [ { - mapping_url: 'https://raw.githubusercontent.com/opensearch-project/observability/main/dashboards-observability/.cypress/utils/otel-v1-apm-service-map-mappings.json', - data_url: 'https://raw.githubusercontent.com/opensearch-project/observability/main/dashboards-observability/.cypress/utils/otel-v1-apm-service-map.json', + mapping_url: 'https://raw.githubusercontent.com/opensearch-project/dashboards-observability/main/.cypress/utils/otel-v1-apm-service-map-mappings.json', + data_url: 'https://raw.githubusercontent.com/opensearch-project/dashboards-observability/main/.cypress/utils/otel-v1-apm-service-map.json', index: 'otel-v1-apm-service-map', }, { - mapping_url: 'https://raw.githubusercontent.com/opensearch-project/observability/main/dashboards-observability/.cypress/utils/otel-v1-apm-span-000001-mappings.json', - data_url: 'https://raw.githubusercontent.com/opensearch-project/observability/main/dashboards-observability/.cypress/utils/otel-v1-apm-span-000001.json', + mapping_url: 'https://raw.githubusercontent.com/opensearch-project/dashboards-observability/main/.cypress/utils/otel-v1-apm-span-000001-mappings.json', + data_url: 'https://raw.githubusercontent.com/opensearch-project/dashboards-observability/main/.cypress/utils/otel-v1-apm-span-000001.json', index: 'otel-v1-apm-span-000001', }, { - mapping_url: 'https://raw.githubusercontent.com/opensearch-project/observability/main/dashboards-observability/.cypress/utils/otel-v1-apm-span-000001-mappings.json', - data_url: 'https://raw.githubusercontent.com/opensearch-project/observability/main/dashboards-observability/.cypress/utils/otel-v1-apm-span-000002.json', + mapping_url: 'https://raw.githubusercontent.com/opensearch-project/dashboards-observability/main/.cypress/utils/otel-v1-apm-span-000001-mappings.json', + data_url: 'https://raw.githubusercontent.com/opensearch-project/dashboards-observability/main/.cypress/utils/otel-v1-apm-span-000002.json', index: 'otel-v1-apm-span-000002', }, ]