Add test to protect login bug solution #5415
Labels
help wanted
requires help by anyone willing to contribute
Ruby
testing
issues are usually for adding unit tests, integration tests or any other tests for a feature
#5410 was a great solution for the bug identified in #5405, but I'd like to write a test to prevent this from happening again. It could be a system test:
#5316
Or it could be an integration test, something like this:
plots2/test/integration/login_flow_test.rb
Lines 15 to 26 in 3bef69c
Basically we want to try logging in, like here:
https://github.com/publiclab/plots2/blob/master/test/integration/login_flow_test.rb#L22
but with the wrong password, then enter the right password, and show that it really redirects to the dashboard as the solution in #5410 changed.
For anyone looking to learn more about testing, this is a good one!!!
The text was updated successfully, but these errors were encountered: