import { IMPORT_BTN , IMPORT_OBJECTS , INPUT } from '../screens/saved_objects' ; export const importCase = ( casePath ) => { cy . get ( IMPORT_OBJECTS ) . click ( ) ; cy . get ( INPUT ) . trigger ( 'click' , { force : true } ) . attachFile ( casePath ) . trigger ( 'change' ) ; cy . get ( IMPORT_BTN ) . click ( { force : true } ) ; cy . get ( IMPORT_BTN ) . should ( 'not.exist' ) ; } ;