Skip to content

Commit b9797e9

Browse files
committed
update tets
1 parent 6692c42 commit b9797e9

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

x-pack/plugins/apm/e2e/cypress/integration/csm_dashboard.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feature: CSM Dashboard
1010
Then should have correct client metrics
1111

1212
Scenario: JS Errors
13-
When a user is on the user experience
13+
When a user browses the APM UI application for RUM Data
1414
Then it displays list of relevant js errors
1515

1616
Scenario: Percentile select

x-pack/plugins/apm/e2e/cypress/support/step_definitions/csm/js_errors.ts

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,10 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
7+
import { Then } from 'cypress-cucumber-preprocessor/steps';
88
import { DEFAULT_TIMEOUT } from './csm_dashboard';
9-
import { loginAndWaitForPage } from '../../../integration/helpers';
109
import { getDataTestSubj } from './utils';
1110

12-
/** The default time in ms to wait for a Cypress command to complete */
13-
14-
Given(`a user is on the user experience`, () => {
15-
// wait for all loading to finish
16-
cy.get('kbnLoadingIndicator').should('not.be.visible');
17-
cy.get('.euiStat__title-isLoading').should('not.be.visible');
18-
cy.url().then((url) => {
19-
if (!url.includes('/app/ux')) {
20-
// open service overview page
21-
const RANGE_FROM = 'now-24h';
22-
const RANGE_TO = 'now';
23-
loginAndWaitForPage(
24-
`/app/ux`,
25-
{
26-
from: RANGE_FROM,
27-
to: RANGE_TO,
28-
},
29-
'client'
30-
);
31-
}
32-
});
33-
});
34-
3511
Then(`it displays list of relevant js errors`, () => {
3612
cy.get('.euiBasicTable-loading').should('not.be.visible');
3713
cy.get('.euiStat__title-isLoading').should('not.be.visible');
@@ -54,7 +30,7 @@ Then(`it displays list of relevant js errors`, () => {
5430
.invoke('text')
5531
.should(
5632
'eq',
57-
'Error messageUncaught Error: Test Error in ordersImpacted page loads100.0 %'
33+
'Error messageUncaught Error: Test Error in dashboardImpacted page loads100.0 %'
5834
);
5935
});
6036
});

0 commit comments

Comments
 (0)