tiny fix to test_send_funds_between_accounts_in_multiaccount_instance

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2019-11-07 16:14:28 +01:00
parent 10c45d8a79
commit 9205a147a2
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
1 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
wallet_view.get_account_by_name(account_name).click()
wallet_view.send_transaction_button.click()
wallet_view.back_button.click()
balance_after_receiving_tx = float(wallet_view.eth_asset_value.text)
balance_after_receiving_tx = float(wallet_view.get_asset_amount_by_name('ETHro'))
expected_balance = self.network_api.get_rounded_balance(balance_after_receiving_tx, transaction_amount)
if balance_after_receiving_tx != expected_balance:
self.driver.fail('New account balance %s does not match expected %s after receiving a transaction' % (
@ -536,7 +536,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
send_transaction.back_button.click()
balance_of_sub_account = float(self.network_api.get_balance(sub_account_address)) / 1000000000000000000
balance_of_status_account = float(self.network_api.get_balance(status_account_address)) / 1000000000000000000
total_eth_from_two_accounts = float(wallet_view.eth_asset_value.text)
total_eth_from_two_accounts = float(wallet_view.get_asset_amount_by_name('ETHro'))
expected_balance = self.network_api.get_rounded_balance(total_eth_from_two_accounts,
(balance_of_status_account + balance_of_sub_account))