Commit 9f951384 authored by Stéphane Sobucki's avatar Stéphane Sobucki Committed by Vincent A

[boursorama] Fix: Handle logged out redirect

While fetching accounts, we can get disconnected. The redirect URL was
not handled, so we would never try to relogin to the website.
parent dafe3c7c
......@@ -90,7 +90,13 @@ class BoursoramaBrowser(RetryLoginBrowser, TwoFactorBrowser):
'/infos-profil',
ErrorPage
)
login = URL(r'/connexion/saisie-mot-de-passe', PasswordPage)
login = URL(
r'/connexion/saisie-mot-de-passe',
# When getting logged out, we get redirected to
# either /connexion/ or /connexion/?ubiquite=1
r'/connexion/(\?ubiquite=1)?$',
PasswordPage
)
minor = URL(r'/connexion/mineur', MinorPage)
accounts = URL(r'/dashboard/comptes\?_hinclude=300000', AccountsPage)
accounts_error = URL(r'/dashboard/comptes\?_hinclude=300000', AccountsErrorPage)
......
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