title: Cypress - import and export functions
body: <p>How can I better organize my cypress code for testing so that I only need to import some functions?</p>
  <p>I want to start by creating a file in which to authenticate on the page, and then I want to import it in a test with several functions.</p>
  <p>I tried the following export code and it seems to have been incorrect, with errors:</p>
  <pre><code>export function login() {
      cy.visit('https://*********')
      cy.get('input[name=&quot;Parameter.UserName&quot;]').type('*****')
      cy.get('input[name=&quot;Parameter.Password&quot;]').type('*****')
      cy.contains('Login').click()
  
  }
  
  export default {login};
  </code></pre>
  <p>And in test :</p>
  <pre><code>import {login} from 'elements/pages/login.js'
  </code></pre>