diff --git a/modules/bp/pages/transfer.py b/modules/bp/pages/transfer.py index 70b0b6ab66a4ccddc56954f7139e934b7ead5f8d..6b66f321549ee9a97f6a32d20151a7d7c3a7bd09 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')