import { callOutWithId , CALLOUT_DISMISS_BTN } from '../../screens/common/callouts' ; export const getCallOut = ( id , options ? ) => { return cy . get ( callOutWithId ( id ) , options ) ; } ; export const waitForCallOutToBeShown = ( id , color ) => { getCallOut ( id ) . should ( 'be.visible' ) . should ( 'have.class' , `euiCallOut--${ color }` ) ; } ; export const dismissCallOut = ( id ) => { getCallOut ( id ) . within ( ( ) => { cy . get ( CALLOUT_DISMISS_BTN ) . should ( 'be.visible' ) . click ( ) ; cy . root ( ) . should ( 'not.exist' ) ; } ) ; } ;