Skip to content

Commit

Permalink
set time range before opening service and operations (#1023) (#1040)
Browse files Browse the repository at this point in the history
Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit c644c39)

Co-authored-by: Yulong Ruan <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and ruanyl authored Feb 2, 2024
1 parent 264b370 commit 4b8e489
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -60,13 +61,19 @@ 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'
);
});

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();
Expand Down

0 comments on commit 4b8e489

Please sign in to comment.