export const createSpace = ( id ) => { cy . request ( { method : 'POST' , url : 'api/spaces/space' , body : { id , name : id , } , headers : { 'kbn-xsrf' : 'cypress-creds' } , } ) ; } ; export const removeSpace = ( id ) => { cy . request ( `/api/spaces/space/${ id }` ) ; } ;