test: Test login redirects prefer session cookies.
Add a test to ensure that the login page redirect as long as we have a valid session even if we have expired on non-existent JWT cookies.
This commit is contained in:
@@ -81,6 +81,9 @@ class SupportViewManageUserTests(SupportViewTestCase):
|
||||
"""
|
||||
Tests password assistance
|
||||
"""
|
||||
# Ensure that user is not logged in if they need
|
||||
# password assistance.
|
||||
self.client.logout()
|
||||
url = '/password_assistance'
|
||||
response = self.client.get(url)
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user