       page.click '.auth-email-form__submit'
       page.fillIn '.auth-signin-form__password input', 'w0rstmovie'
       page.click '.auth-signin-form__submit'
-      page.waitForReload(2000)
       page.expectText '.auth-form', 'that password doesn\'t match'
 
     it 'can login from the dashboard', ->

      page.click '.auth-email-form__submit'
      page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
      page.click '.auth-signin-form__submit'
      page.waitForReload(2000)
      page.expectFlash 'Signed in successfully'

    it 'can login from a discussion page', ->
      page.loadPath 'view_open_discussion_as_visitor'

      page.click '.auth-email-form__submit'
      page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
      page.click '.auth-signin-form__submit'
      # page.waitForReload(2000)
      # page.expectFlash 'Signed in successfully'

    it 'can login from a closed group page', ->
      page.loadPath 'view_closed_group_as_visitor'
      page.click '.navbar__sign-in'
      page.fillIn '.auth-email-form__email input', 'patrick_swayze@example.com'
      page.click '.auth-email-form__submit'
      page.fillIn '.auth-signin-form__password input', 'gh0stmovie'
      page.click '.auth-signin-form__submit'
      # page.waitForReload(2000)
      # page.expectFlash 'Signed in successfully'
      # page.expectText '.group-theme__name', 'Closed Dirty Dancing Shoes'
      # page.expectText '.thread-previews-container', 'This thread is private'
      # page.expectElement '.sidebar__content'

    it 'can login from a secret group page', ->
      page.loadPath 'view_secret_group_as_visitor'
