import { TestCase } from '../../objects/case' ; export const createCase = ( newCase ) => cy . request ( { method : 'POST' , url : 'api/cases' , body : { description : newCase . description , title : newCase . name , tags : [ 'tag' ] , connector : { id : 'none' , name : 'none' , type : '.none' , fields : null , } , settings : { syncAlerts : true , } , owner : newCase . owner , } , headers : { 'kbn-xsrf' : 'cypress-creds' } , } ) ;