Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow logging in with devise #80

Open
grantspeelman opened this issue Mar 15, 2021 · 0 comments
Open

Allow logging in with devise #80

grantspeelman opened this issue Mar 15, 2021 · 0 comments

Comments

@grantspeelman
Copy link
Collaborator

grantspeelman commented Mar 15, 2021

Make Authenticating a User https://github.com/shakacode/cypress-on-rails/blob/master/docs/authentication.md part of the gem.

Using Rails engines we can make the following work out of the box.

  // after logging in we redirect the user
  cy.forceLogin({email: 'someuser@mail.com', redirect_to: '/home'})

  // If a different model is used instead of `User`
  cy.forceLogin({email: 'someuser@mail.com', model: 'Account'})

  // logging in by id
  cy.forceLogin({id: 1})
  • If the login fails we should display a readable error message
  • If devise is not being used we should display a readable error message
@grantspeelman grantspeelman added this to To do in Cypress On Rails via automation Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant