Skip to content

Commit

Permalink
Wait for trace group table to load (#1420) (#1423)
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit 928a1a4)

Co-authored-by: Shenoy Pratik <sgguruda@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and ps48 authored Jun 19, 2024
1 parent deb070e commit bfb390d
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ describe('Testing dashboard table', () => {
'[data-test-subj="trace-groups-service-operation-accordian"]'
).click();

cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should(
'be.visible'
);

cy.contains(' >= 95 percentile').click({ force: true });
cy.wait(delayTime);
cy.contains(' >= 95 percentile').click({ force: true });
Expand Down Expand Up @@ -64,6 +68,11 @@ describe('Testing dashboard table', () => {
cy.get(
'[data-test-subj="trace-groups-service-operation-accordian"]'
).click();

cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should(
'be.visible'
);

cy.get('.euiButtonIcon[aria-label="Open popover"]').first().click();
cy.get('text.ytitle[data-unformatted="Hourly latency (ms)"]').should(
'exist'
Expand All @@ -74,6 +83,11 @@ describe('Testing dashboard table', () => {
cy.get(
'[data-test-subj="trace-groups-service-operation-accordian"]'
).click();

cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should(
'be.visible'
);

cy.get('[data-test-subj="dashboard-table-traces-button"]')
.contains('13')
.click();
Expand All @@ -100,6 +114,10 @@ describe('Testing plots', () => {
cy.get(
'[data-test-subj="trace-groups-service-operation-accordian"]'
).click();

cy.get('[data-test-subj="dashboard-table-trace-group-name-button"]').should(
'be.visible'
);
});

it('Renders plots', () => {
Expand Down

0 comments on commit bfb390d

Please sign in to comment.