You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.
The test shows the following error: Response redirected to '/backoffice/login/?next=/backoffice/home/', expected '/backoffice/login/'
It seems it compares the GET params with the URL. So , should we split the URL returned for redirection in case of ignore the GET params in it? Should we include them in the test to be compared?
The text was updated successfully, but these errors were encountered:
It is strange because I'm using the redirection given by the test, maybe the assertRedirects is not the best choice.
Does the '/backoffice/login/?next=/backoffice/home/' url counts as a redirection?
Do you think I should forge the url as something like:
When you try to access to home page without being authenticaed, it redirects you to the login page with the param next that it is used to redirect you again when you log in successfully to the page you tried to access.
I think it's correct that the redirection url is '/backoffice/login/?next=/backoffice/home/' because 'next=/backoffice/home/' is a GET parameter needed for redirect again.
I like your solution. On this way, we test the redirection to login page when you are not loged in and the intention of the login page to move you to home again ( assuming you came from home )
I have launched the login tests of the backoffice and I have seen there is a problem with the not_logged test.
backend/backoffice/tests.py
Lines 13 to 15 in 3e363cd
The test shows the following error:
Response redirected to '/backoffice/login/?next=/backoffice/home/', expected '/backoffice/login/'
It seems it compares the GET params with the URL. So , should we split the URL returned for redirection in case of ignore the GET params in it? Should we include them in the test to be compared?
The text was updated successfully, but these errors were encountered: