Skip to content

Commit

Permalink
adjust for traces sample data changes
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sebastian <[email protected]>
  • Loading branch information
paulstn committed Sep 10, 2024
1 parent c755e5e commit bbfc081
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('Testing dashboard table', () => {
cy.contains('Latency percentile within trace group: < 95th').should(
'exist'
);
cy.contains(' (8)').should('exist');
cy.contains(' (7)').should('exist');
cy.contains('383.05').should('exist');
});

Expand Down Expand Up @@ -89,11 +89,11 @@ describe('Testing dashboard table', () => {
);

cy.get('[data-test-subj="dashboard-table-traces-button"]')
.contains('13')
.contains('6')
.click();
cy.wait(delayTime);

cy.contains(' (13)').should('exist');
cy.contains(' (9)').should('exist');
cy.contains('client_create_order').should('exist');

cy.get('.euiSideNavItemButton__label').contains('Trace analytics').click();
Expand Down Expand Up @@ -122,10 +122,10 @@ describe('Testing plots', () => {

it('Renders plots', () => {
cy.get('text.ytitle[data-unformatted="Error rate (%)"]').should('exist');
cy.get('text.annotation-text[data-unformatted="Now: 14.81%"]').should(
cy.get('text.annotation-text[data-unformatted="Now: 26.83%"]').should(
'exist'
);
cy.get('text.ytitle[data-unformatted="Throughput (n)"]').should('exist');
cy.get('text.annotation-text[data-unformatted="Now: 108"]').should('exist');
cy.get('text.annotation-text[data-unformatted="Now: 41"]').should('exist');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Testing services table', () => {
.first()
.focus()
.type(`${SERVICE_NAME}{enter}`);
cy.get('.euiButton__text').contains('Refresh').click();
cy.get('button[data-test-subj="superDatePickerApplyTimeButton"]').click();
cy.contains(' (1)').should('exist');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,25 @@ describe('Testing traces table', () => {
});

it('Sorts the traces table', () => {
cy.get('.euiTableRow').first().contains('-').should('exist');
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('.euiTableRow')
.first()
.contains('client_create_order')
.should('exist');
cy.get('.euiTableCellContent').contains('Trace group').click();
cy.get('.euiTableRow').first().contains('/**').should('exist');
});

it('Searches correctly', () => {
cy.get('input[type="search"]').focus().type(`${TRACE_ID}{enter}`);
cy.get('.euiButton__text').contains('Refresh').click();
cy.get('button[data-test-subj="superDatePickerApplyTimeButton"]').click();
cy.contains(' (1)').should('exist');
cy.contains('03/25/2021 10:21:22').should('exist');
});
Expand Down

0 comments on commit bbfc081

Please sign in to comment.