Skip to content

Commit

Permalink
Amend e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Oct 29, 2020
1 parent a7085f3 commit c3ec45e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Given(`a user browses the APM UI application for RUM Data`, () => {
});

Then(`should have correct client metrics`, () => {
const metrics = ['4 ms', '58 ms', '55'];
const metrics = ['80 ms', '4 ms', '76 ms', '55'];

verifyClientMetrics(metrics, true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ Then(/^it filters the client metrics "([^"]*)"$/, (filterName) => {
cy.get('.euiStat__title-isLoading').should('not.be.visible');

const data =
filterName === 'os' ? ['5 ms', '64 ms', '8'] : ['4 ms', '55 ms', '28'];
filterName === 'os'
? ['82 ms', '5 ms', '77 ms', '8']
: ['75 ms', '4 ms', '71 ms', '28'];

verifyClientMetrics(data, true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ When('the user changes the selected percentile', () => {
});

Then(`it displays client metric related to that percentile`, () => {
const metrics = ['14 ms', '131 ms', '55'];
const metrics = ['165 ms', '14 ms', '151 ms', '55'];

verifyClientMetrics(metrics, false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ When('the user changes the selected service name', () => {
});

Then(`it displays relevant client metrics`, () => {
const metrics = ['4 ms', '58 ms', '55'];
const metrics = ['80 ms', '4 ms', '76 ms', '55'];

verifyClientMetrics(metrics, false);
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Then(`it displays top pages in the suggestion popover`, () => {
listOfUrls.should('have.length', 5);

const actualUrlsText = [
'http://opbeans-node:3000/dashboardTotal page views: 17Page load duration: 109 ms (median)',
'http://opbeans-node:3000/ordersTotal page views: 14Page load duration: 72 ms (median)',
'http://opbeans-node:3000/dashboardTotal page views: 17Page load: 109 ms (median)',
'http://opbeans-node:3000/ordersTotal page views: 14Page load: 72 ms (median)',
];

cy.get('li.euiSelectableListItem')
Expand Down Expand Up @@ -55,7 +55,7 @@ Then(`it should filter results based on query`, () => {
listOfUrls.should('have.length', 1);

const actualUrlsText = [
'http://opbeans-node:3000/customersTotal page views: 10Page load duration: 76 ms (median)',
'http://opbeans-node:3000/customersTotal page views: 10Page load: 76 ms (median)',
];

cy.get('li.euiSelectableListItem')
Expand Down

0 comments on commit c3ec45e

Please sign in to comment.