Fixed transactions history test

Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
yevh-berdnyk 2018-11-14 22:50:19 +01:00
parent c8278f0407
commit e08b496c38
No known key found for this signature in database
GPG Key ID: E9B425FDFC4DEA9C
3 changed files with 10 additions and 3 deletions

View File

@ -366,8 +366,8 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5314) @marks.testrail_id(5314)
def test_can_see_all_transactions_in_history(self): def test_can_see_all_transactions_in_history(self):
address = transaction_senders['W']['address'] address = wallet_users['D']['address']
passphrase = transaction_senders['W']['passphrase'] passphrase = wallet_users['D']['passphrase']
ropsten_txs = self.network_api.get_transactions(address) ropsten_txs = self.network_api.get_transactions(address)
ropsten_tokens = self.network_api.get_token_transactions(address) ropsten_tokens = self.network_api.get_token_transactions(address)

View File

@ -28,6 +28,13 @@ wallet_users['C']['address'] = "8dce052ccda2f6f6b555759cee6957e04a6ddf5b"
wallet_users['C']['public_key'] = "0x04fd6db8ae245ca351cb6e24bea29df6d81cb35b7f7a91c68a8b5a0c49da444" \ wallet_users['C']['public_key'] = "0x04fd6db8ae245ca351cb6e24bea29df6d81cb35b7f7a91c68a8b5a0c49da444" \
"8cdb356cc9c24b9d813094a86e1fb2dc2bf5252a3f117194bbb3bb29f4befbe898c" "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 = dict()
transaction_senders['A'] = dict() transaction_senders['A'] = dict()

View File

@ -56,7 +56,7 @@ class TransactionTable(BaseElement):
self.locators['transaction_hash'] = "//android.widget.TextView[@text='Hash']/following-sibling::*[1]" self.locators['transaction_hash'] = "//android.widget.TextView[@text='Hash']/following-sibling::*[1]"
self.locators['sender_address'] = "//*[@content-desc='sender-address-text']" 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): class DetailsTextElement(BaseText):
def __init__(self, driver, locator): def __init__(self, driver, locator):