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' ;
88import { DEFAULT_TIMEOUT } from './csm_dashboard' ;
9- import { loginAndWaitForPage } from '../../../integration/helpers' ;
109import { 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-
3511Then ( `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