From e08b496c38a13f96df402088569bff99a17f7c44 Mon Sep 17 00:00:00 2001 From: yevh-berdnyk Date: Wed, 14 Nov 2018 22:50:19 +0100 Subject: [PATCH] Fixed transactions history test Signed-off-by: yevh-berdnyk --- test/appium/tests/atomic/transactions/test_wallet.py | 4 ++-- test/appium/tests/users.py | 7 +++++++ test/appium/views/transactions_view.py | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/test/appium/tests/atomic/transactions/test_wallet.py b/test/appium/tests/atomic/transactions/test_wallet.py index feb245e2a0..c547b29858 100644 --- a/test/appium/tests/atomic/transactions/test_wallet.py +++ b/test/appium/tests/atomic/transactions/test_wallet.py @@ -366,8 +366,8 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase): @marks.testrail_id(5314) def test_can_see_all_transactions_in_history(self): - address = transaction_senders['W']['address'] - passphrase = transaction_senders['W']['passphrase'] + address = wallet_users['D']['address'] + passphrase = wallet_users['D']['passphrase'] ropsten_txs = self.network_api.get_transactions(address) ropsten_tokens = self.network_api.get_token_transactions(address) diff --git a/test/appium/tests/users.py b/test/appium/tests/users.py index 12108135d8..179adadb9d 100644 --- a/test/appium/tests/users.py +++ b/test/appium/tests/users.py @@ -28,6 +28,13 @@ wallet_users['C']['address'] = "8dce052ccda2f6f6b555759cee6957e04a6ddf5b" wallet_users['C']['public_key'] = "0x04fd6db8ae245ca351cb6e24bea29df6d81cb35b7f7a91c68a8b5a0c49da444" \ "8cdb356cc9c24b9d813094a86e1fb2dc2bf5252a3f117194bbb3bb29f4befbe898c" +wallet_users['D'] = dict() +wallet_users['D']['passphrase'] = "hen mango since lottery laundry flag report whisper cycle rate festival carry" +wallet_users['D']['username'] = "Quickwitted United Orca" +wallet_users['D']['address'] = "80b663e82657caf5657ce79b11aeaeda02c6cd92" +wallet_users['D']['public_key'] = "0x048d9ee2acb99b0c9fef98665f8287d99fc365c5e827fc2541ffdce4cb87a9480bbea8" \ + "324968b9bb1ae6c2eca37cf0ab4aba9d85755e3a532431b9edc189f23c7c" + transaction_senders = dict() transaction_senders['A'] = dict() diff --git a/test/appium/views/transactions_view.py b/test/appium/views/transactions_view.py index 9b6c040fdc..044ec9ae26 100644 --- a/test/appium/views/transactions_view.py +++ b/test/appium/views/transactions_view.py @@ -56,7 +56,7 @@ class TransactionTable(BaseElement): self.locators['transaction_hash'] = "//android.widget.TextView[@text='Hash']/following-sibling::*[1]" self.locators['sender_address'] = "//*[@content-desc='sender-address-text']" - self.locators['recipient_address'] = "//*[@content-desc='recipient-address-text']" + self.locators['recipient_address'] = "//*[@content-desc='recipient-address-text'][last()]" class DetailsTextElement(BaseText): def __init__(self, driver, locator):