import { login , checkA11y } from '../../../shared/cypress/commands' ; import { overviewPath } from '../../../shared/cypress/routes' ; context ( 'Enterprise Search Overview' , ( ) => { beforeEach ( ( ) => { login ( ) ; } ) ; it ( 'should contain product cards' , ( ) => { cy . visit ( overviewPath ) ; cy . contains ( 'Welcome to Elastic Enterprise Search' ) ; cy . get ( '[data-test-subj="appSearchProductCard"]' ) . contains ( 'Open App Search' ) . should ( 'have.attr' , 'href' ) . and ( 'match' , /app_search/ ) ; cy . get ( '[data-test-subj="workplaceSearchProductCard"]' ) . contains ( 'Open Workplace Search' ) . should ( 'have.attr' , 'href' ) . and ( 'match' , /workplace_search/ ) ; checkA11y ( ) ; } ) ; it ( 'should have a setup guide' , ( ) => { cy . on ( 'uncaught:exception' , ( err ) => { if ( err . message . includes ( '> ResizeObserver loop limit exceeded' ) ) return false ; } ) ; cy . visit ( `${ overviewPath }/setup_guide` ) ; cy . contains ( 'Setup Guide' ) ; cy . contains ( 'Add your Enterprise Search host URL to your Kibana configuration' ) ; checkA11y ( ) ; } ) ; } ) ;