title: Testing Meteor application with Chimp/Mocha - automatic login to test authenticated routes
body: <p>I'm testing some forms in a Meteor application using Mocha. The routes in the application are authenticated, so only logged in users or users who have a role of 'administrator' can view them.</p>
  
  <p>When the test opens the browser to view the url and fill the form in, it gets redirected to the login page as expected.</p>
  
  <p>Is there a way to automatically log the user in before doing the test so I don't have to remove the route authentication?</p>
  
  <p>Here's the test code so far</p>
  
  <pre><code>describe( 'Create a Client', function() {
      it( 'should create a new client @watch', function() {
          browser.url('http://localhost:3000/dashboard/clients/new')
  
         [...]
  
      });
  });
  </code></pre>