const baseUrl = Cypress . config ( ) . baseUrl ; export const testUrl = ( path ) : void => { cy . url ( ) . should ( 'eq' , `${ baseUrl }${ path }` ) ; } ; export const testLocalStorageItem = ( key ) : void => { cy . window ( ) . then ( window => assert . isOk ( window . localStorage . getItem ( key ) ) ) ; } ; export const setLocalStorageItem = ( key , value ) : void => { localStorage . setItem ( key , JSON . stringify ( value ) ) ; } ; export const getLocalStorageItem = ( key ) : any => { return JSON . parse ( localStorage . getItem ( key ) ) ; } ;