Commit 1ae52f83 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cmes/groupamaes] Add default value to e-mail action needed

For some of the children of CMES (such as Groupama Epargne Salariale) we
must put a default value to the Link() because there is no available
URL to bypass the page. We this raise ActionNeeded at this step.

Closes: 41376@sibi
parent 81c3b04c
......@@ -57,7 +57,7 @@ class ActionNeededPage(HTMLPage, LoggedPage):
# Need to update mail. Try to skip
msg = "Merci de renseigner votre adresse e-mail"
if CleanText('//p[@role="heading" and contains(text(), "%s")]' % msg)(self.doc):
url = Link('//a[contains(., "PASSER CETTE ETAPE")]')(self.doc)
url = Link('//a[contains(., "PASSER CETTE ETAPE")]', default=None)(self.doc)
if url:
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