Skip to content

Commit

Permalink
set time range before opening service and operations (#1023)
Browse files Browse the repository at this point in the history
Signed-off-by: Yulong Ruan <[email protected]>
(cherry picked from commit c644c39)
  • Loading branch information
ruanyl authored and github-actions[bot] committed Feb 2, 2024
1 parent 6ad8c9c commit 1c8de73
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 1c8de73

Please sign in to comment.