Commit 76919d4f authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditmutuel] Skip some cards

Some undesirable cards get the precedent xpath condition. The
criteria is now if there is coming. Ex: 'Dépenses de novembre'.

Closes: 28173@sibi 8134@zendesk
parent cc0fc417
......@@ -1842,7 +1842,8 @@ class NewCardsListPage(LoggedPage, HTMLPage):
klass = Account
def condition(self):
return CleanText('.//div[1]/p')(self) == 'Active' and self.el.xpath('.//tr[1]/td/a[contains(@id,"C:more-card")]')
# Numerous cards are not differed card, we keep the card only if there is a coming
return CleanText('.//div[1]/p')(self) == 'Active' and 'Dépenses' in CleanText('.//tr[1]/td/a[contains(@id,"C:more-card")]')(self)
obj_balance = 0
obj_type = Account.TYPE_CARD
......
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