Commit 757e1afd authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cragr] Specified landing URL in the error message if login failed

When the security check does not lead to AccountsPage we raise an assert
but it would be useful for debugging to know the URL that we reached
after the security check. Usual landing URls are for example
first connections ActionNeeded or server errors.

Closes: 35411@sibi
parent 4b87df88
......@@ -164,7 +164,7 @@ class CragrAPI(LoginBrowser):
self.accounts_url = self.page.get_accounts_url()
assert self.accounts_url, 'Could not get accounts url from security check'
self.location(self.accounts_url)
assert self.accounts_page.is_here(), 'We failed to login after the security check!'
assert self.accounts_page.is_here(), 'We failed to login after the security check: response URL is %s' % self.url
# Once the security check is passed, we are logged in.
def get_security_form(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment