import { FIELD_INPUT , OPERATOR_INPUT , CANCEL_BTN , BUILDER_MODAL_BODY , EXCEPTION_ITEM_CONTAINER , } from '../screens/exceptions' ; export const addExceptionEntryFieldValueOfItemX = ( field , itemIndex = 0 , fieldIndex = 0 ) => { cy . get ( EXCEPTION_ITEM_CONTAINER ) . eq ( itemIndex ) . find ( FIELD_INPUT ) . eq ( fieldIndex ) . type ( `${ field }{enter}` ) ; cy . get ( BUILDER_MODAL_BODY ) . click ( ) ; } ; export const addExceptionEntryFieldValue = ( field , index = 0 ) => { cy . get ( FIELD_INPUT ) . eq ( index ) . type ( `${ field }{enter}` ) ; cy . get ( BUILDER_MODAL_BODY ) . click ( ) ; } ; export const addExceptionEntryOperatorValue = ( operator , index = 0 ) => { cy . get ( OPERATOR_INPUT ) . eq ( index ) . type ( `${ operator }{enter}` ) ; cy . get ( BUILDER_MODAL_BODY ) . click ( ) ; } ; export const closeExceptionBuilderModal = ( ) => { cy . get ( CANCEL_BTN ) . click ( ) ; } ;