Commit 5236ddde authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[caissedepargne] Fix transfer label spaces

With a label with a length > 40, some spaces is add with the <wbr> tag.
A simple remove of wbr tag is sufficient.
parent dbc88ff4
......@@ -1028,6 +1028,12 @@ class TransferPage(TransferErrorPage, IndexPage):
class TransferConfirmPage(TransferErrorPage, IndexPage):
def build_doc(self, content):
# The page have some <wbr> tags in the label content (spaces added each 40 characters if the character is not a space).
# Consequently the label can't be matched with the original one. We delete these tags.
content = content.replace(b'<wbr>', b'')
return super(TransferErrorPage, self).build_doc(content)
def is_here(self):
return bool(CleanText(u'//h2[contains(text(), "Confirmer mon virement")]')(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