Skip to content

Commit 05784d3

Browse files
authored
update cypress for trace analytics 2.15 (#1376)
Signed-off-by: Shenoy Pratik <[email protected]>
1 parent b2e2498 commit 05784d3

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

cypress/integration/plugins/observability-dashboards/1_trace_analytics_dashboard.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { delayTime, setTimeFilter } from '../../../utils/constants';
99

1010
describe('Testing dashboard table empty state', () => {
1111
beforeEach(() => {
12-
cy.visit('app/observability-traces#/', {
12+
cy.visit('app/observability-traces#/traces', {
1313
onBeforeLoad: (win) => {
1414
win.sessionStorage.clear();
1515
},
@@ -23,7 +23,7 @@ describe('Testing dashboard table empty state', () => {
2323

2424
describe('Testing dashboard table', () => {
2525
beforeEach(() => {
26-
cy.visit('app/observability-traces#/', {
26+
cy.visit('app/observability-traces#/traces', {
2727
onBeforeLoad: (win) => {
2828
win.sessionStorage.clear();
2929
},
@@ -91,7 +91,7 @@ describe('Testing dashboard table', () => {
9191

9292
describe('Testing plots', () => {
9393
beforeEach(() => {
94-
cy.visit('app/observability-traces#/', {
94+
cy.visit('app/observability-traces#/traces', {
9595
onBeforeLoad: (win) => {
9696
win.sessionStorage.clear();
9797
},

cypress/integration/plugins/observability-dashboards/2_trace_analytics_services.spec.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
/// <reference types="cypress" />
77

8-
import { SERVICE_NAME, setTimeFilter } from '../../../utils/constants';
8+
import {
9+
SERVICE_NAME,
10+
setTimeFilter,
11+
delayTime,
12+
} from '../../../utils/constants';
913

1014
describe('Testing services table', () => {
1115
beforeEach(() => {
@@ -25,6 +29,14 @@ describe('Testing services table', () => {
2529
cy.get('.euiButton__text').contains('Refresh').click();
2630
cy.contains(' (1)').should('exist');
2731
});
32+
33+
it('Opens service flyout', () => {
34+
cy.get('button[data-test-subj^="service-flyout-action-btn"]')
35+
.first()
36+
.click();
37+
cy.wait(delayTime);
38+
cy.get('span').contains('Overview').should('exist');
39+
});
2840
});
2941

3042
describe('Testing service view empty state', () => {

0 commit comments

Comments
 (0)