import { BACK_TO_RULE_DETAILS , EDIT_SUBMIT_BUTTON , KIBANA_LOADING_COMPLETE_INDICATOR , } from '../screens/edit_rule' ; export const saveEditedRule = ( ) => { cy . get ( EDIT_SUBMIT_BUTTON ) . should ( 'exist' ) . click ( { force : true } ) ; cy . get ( EDIT_SUBMIT_BUTTON ) . should ( 'not.exist' ) ; } ; export const goBackToRuleDetails = ( ) => { cy . get ( BACK_TO_RULE_DETAILS ) . should ( 'exist' ) . click ( ) ; cy . get ( BACK_TO_RULE_DETAILS ) . should ( 'not.exist' ) ; } ; export const waitForKibana = ( ) => { cy . get ( KIBANA_LOADING_COMPLETE_INDICATOR ) . should ( 'exist' ) ; } ;