Commit 03df6cff authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[cragr] Fix BGPI redirection by handling other URL

Sometimes the URL is slightly different, we must handle '_jcr_' and
'jcr:'
parent f01823af
......@@ -119,7 +119,7 @@ class CreditAgricoleBrowser(LoginBrowser, StatesMixin):
r'https://npcprediweb.predica.credit-agricole.fr/rest/detailEpargne/contrat/', PredicaInvestmentsPage
)
bgpi_redirection = URL(r'(?P<space>[\w-]+)/operations/moco/bgpi/jcr:content.init.html', BgpiRedirectionPage)
bgpi_redirection = URL(r'(?P<space>[\w-]+)/operations/moco/bgpi/_?jcr[:_]content.init.html', BgpiRedirectionPage)
bgpi_accounts = URL(r'https://bgpi-gestionprivee.credit-agricole.fr/bgpi/Logon.do', BgpiAccountsPage)
bgpi_investments = URL(r'https://bgpi-gestionprivee.credit-agricole.fr/bgpi/CompteDetail.do', BgpiInvestmentsPage)
......
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