Commit 724710f8 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[cragr] Regions: added logger to verify that all AccountsPage have "Synthèse comptes"

parent 5d83ce50
......@@ -276,6 +276,11 @@ ACCOUNT_TYPES = {
class AccountsPage(LoggedPage, CragrPage):
def on_load(self):
# Verify that all accounts page have the text 'Synthèse comptes'
if not CleanText('//h1[contains(text(), "Synthèse comptes")]')(self.doc):
self.logger.warning('We found an AccountsPage without the "Synthèse comptes" text.')
def no_other_perimeter(self):
return not CleanText('//a[@title="Espace Autres Comptes"]')(self.doc)
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