Skip to content

Commit

Permalink
update cypress for trace analytics 2.15 (#1376)
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 authored Jun 11, 2024
1 parent b2e2498 commit 05784d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { delayTime, setTimeFilter } from '../../../utils/constants';

describe('Testing dashboard table empty state', () => {
beforeEach(() => {
cy.visit('app/observability-traces#/', {
cy.visit('app/observability-traces#/traces', {
onBeforeLoad: (win) => {
win.sessionStorage.clear();
},
Expand All @@ -23,7 +23,7 @@ describe('Testing dashboard table empty state', () => {

describe('Testing dashboard table', () => {
beforeEach(() => {
cy.visit('app/observability-traces#/', {
cy.visit('app/observability-traces#/traces', {
onBeforeLoad: (win) => {
win.sessionStorage.clear();
},
Expand Down Expand Up @@ -91,7 +91,7 @@ describe('Testing dashboard table', () => {

describe('Testing plots', () => {
beforeEach(() => {
cy.visit('app/observability-traces#/', {
cy.visit('app/observability-traces#/traces', {
onBeforeLoad: (win) => {
win.sessionStorage.clear();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

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

import { SERVICE_NAME, setTimeFilter } from '../../../utils/constants';
import {
SERVICE_NAME,
setTimeFilter,
delayTime,
} from '../../../utils/constants';

describe('Testing services table', () => {
beforeEach(() => {
Expand All @@ -25,6 +29,14 @@ describe('Testing services table', () => {
cy.get('.euiButton__text').contains('Refresh').click();
cy.contains(' (1)').should('exist');
});

it('Opens service flyout', () => {
cy.get('button[data-test-subj^="service-flyout-action-btn"]')
.first()
.click();
cy.wait(delayTime);
cy.get('span').contains('Overview').should('exist');
});
});

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

0 comments on commit 05784d3

Please sign in to comment.