Commit e282c525 authored by Célande Adrien's avatar Célande Adrien Committed by hydrargyrum

[cragr] handle an other savings history page

When a savings account does not have transactions, a page appears
telling that there is no transactions.
But this page instead of being titled "HISTORIQUE DES OPERATIONS" is
only titled "OPERATIONS".
So this page was detected as an AccountsPage because not matching the
`is_here`.
Causing an issue at the `iter_perimeter_accounts`, because when looking
for the `refreshed_account`, it may not be on the right page.

So now the pages titled "OPERATIONS" are considered
`OtherSavingsHistoryPage`.

Closes: [email protected]
parent 7b4c9781
......@@ -681,7 +681,7 @@ class SavingsHistoryPage(LoggedPage, CragrPage):
class OtherSavingsHistoryPage(LoggedPage, CragrPage):
def is_here(self):
return CleanText('//span[@class="tdb-cartes-prop"]/b[contains(text(), "HISTORIQUE DES OPERATIONS")]')(self.doc)
return CleanText('//span[@class="tdb-cartes-prop"]/b[contains(text(), "HISTORIQUE DES OPERATIONS") or text()="OPERATIONS"]')(self.doc)
@pagination
@method
......
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