From 6d728c4dee60fb8c9f9a38c6a9045e03b84b3bd9 Mon Sep 17 00:00:00 2001 From: Baptiste Delpey Date: Fri, 13 Jan 2017 13:45:33 +0100 Subject: [PATCH] sometimes, sending account id of transfer not present in recap check for the label instead in this case --- modules/bp/pages/transfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bp/pages/transfer.py b/modules/bp/pages/transfer.py index 70b0b6ab66..6b66f32154 100644 --- a/modules/bp/pages/transfer.py +++ b/modules/bp/pages/transfer.py @@ -140,7 +140,7 @@ def handle_response(self, account, recipient, amount, reason): account_txt = CleanText('//form//dl/dt[span[contains(text(), "biter")]]/following::dd[1]', replace=[(' ', '')])(self.doc) recipient_txt = CleanText('//form//dl/dt[span[contains(text(), "diter")]]/following::dd[1]', replace=[(' ', '')])(self.doc) try: - assert account.id in account_txt + assert account.id in account_txt or ''.join(account.label.split()) == account_txt assert recipient.id in recipient_txt except AssertionError: raise TransferError('Something went wrong') -- GitLab