-
Notifications
You must be signed in to change notification settings - Fork 0
Add test route to avoid the shadow root/having to render the global nav #70
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
Conversation
Test coverage: 100% |
grega
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Airing one mostly unrelated thought; we can drop Ruby 2.7 support here (all apps using rpi-auth are >=3)
Yes, yes we can! I was slightly struggling with it tbh, but I thought it would be better done in a separate PR. |
## Added - Test controller/view to allow apps to log in without having to interact with the RPF Global Nav component. (#70)
This PR adds a login page to use in testing to avoid having to render the rpf-global-nav in tests that don't need JS.
What's changed
/rpi_auth/testwhich shows a login and sign-up button that can be used in test scenarioslog_in(user:)andstub_auth_for(user:)methods that we've replicated in a lot of places.rubygemsversion during CI because one of the Gems doesn't build with the older version of Rubygems that ships with Ruby 2.7