Commit d7b32af6 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditmutuel] Handle terms and condtions page

During the login we can pass through a terms and condtions page. We can
skip it. To avoid crash it's only necessary to handle this page like a

Closes: 36177@sibi 9673@zendesk
parent 1b766668
......@@ -48,7 +48,8 @@ from .pages import (
LIAccountsPage, CardsActivityPage, CardsListPage,
CardsOpePage, NewAccountsPage, InternalTransferPage,
ExternalTransferPage, RevolvingLoanDetails, RevolvingLoansList,
ErrorPage, SubscriptionPage, NewCardsListPage, CardPage2
ErrorPage, SubscriptionPage, NewCardsListPage, CardPage2,
......@@ -136,6 +137,7 @@ class CreditMutuelBrowser(LoginBrowser, StatesMixin):
error = URL(r'/(?P<subbank>.*)validation/infos.cgi', ErrorPage)
subscription = URL(r'/(?P<subbank>.*)fr/banque/MMU2_LstDoc.aspx', SubscriptionPage)
terms_and_conditions = URL(r'/(?P<subbank>.*)fr/banque/conditions-generales.html', ConditionsPage)
currentSubBank = None
is_new_website = None
......@@ -1950,3 +1950,6 @@ class NewCardsListPage(LoggedPage, HTMLPage):
if other_cards:
return Link(other_cards)(self)
class ConditionsPage(LoggedPage, HTMLPage):
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