declare global { namespace Cypress { interface Chainable { app ( command ) : void ; login ( email , password ) : void ; signup ( username , email , password , passwordConfirmation , toggleTermsAndPrivacy ) : void ; addOrganization ( name ) : void ; createProject ( name , description ? , fromOrganizationPage ? ) : void ; addKey ( name , description , content ? , isHtml ? ) : void ; appScenario ( scenario ) : void ; addLanguage ( languageCode , countryCode , languageName , isDefault ? ) : void ; goToKeys ( ) : void ; goToProjectHome ( ) : void ; goToLanguages ( ) : void ; goToProjectSettings ( ) : void ; goToEditor ( ) : void ; leaveEditor ( ) : void ; clickOutside ( ) : void ; addUser ( email ) : void ; } } } import "./commands" ; import "./on-rails" ; Cypress . on ( "window:before:load" , ( win ) => { win . indexedDB . deleteDatabase ( "localforage" ) ; } ) ; beforeEach ( ( ) => { cy . app ( "clean" ) ; cy . app ( "load_seed" ) ; } ) ;