Commit a096755b authored by Martin Lavoie's avatar Martin Lavoie Committed by Vincent A

[fortuneo] Check for action needed on the account page

Sometime the account list page is fine but anything after
that gets you an action needed.
parent e140775d
......@@ -276,6 +276,10 @@ def iter_accounts(self):
if self.process_skippable_message():
action_needed_message =
if action_needed_message:
raise ActionNeeded(action_needed_message)
if self.loan_contract.is_here():
loan = Loan.from_dict(account.to_dict())
loan._ca = account._ca
......@@ -97,6 +97,7 @@ def get_action_needed_message(self):
+ '| //span[contains(text(), "Nouveau mot de passe")]'
+ '| //span[contains(text(), "Renouvellement de votre mot de passe")]'
+ '| //span[contains(text(), "Mieux vous connaître")]'
+ '| //span[contains(text(), "mettre à jour vos informations personnelles")]/ancestor::div[1]'
+ '| //span[contains(text(), "Souscrivez au Livret + en quelques clics")]'
+ '| //p[@class="warning" and contains(text(), "Cette opération sensible doit être validée par un code sécurité envoyé par SMS")]'
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