E2E transaction appears in history

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2019-10-28 10:00:03 +02:00
parent 5561aff955
commit eb00df147d
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
4 changed files with 13 additions and 24 deletions

View File

@ -40,5 +40,6 @@
(i18n/label :t/block-contact-details)]
[list-item/list-item
{:theme :action-destructive
:accessibility-label :block-contact-confirm
:title :t/block-contact
:on-press #(hide-sheet-and-dispatch [:contact.ui/block-contact-confirmed public-key])}]]))

View File

@ -68,6 +68,7 @@
[list-item/list-item
{:theme :action
:title :t/account-settings
:accessibility-label :account-settings-bottom-sheet
:icon :main-icons/info
:on-press #(hide-sheet-and-dispatch [:navigate-to :account-settings])}]
;; Commented out for v1

View File

@ -120,34 +120,21 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
if send_transaction.element_by_text_part('Transaction sent').is_element_displayed():
self.driver.fail('Transaction was sent with a wrong password')
@marks.testrail_id(1452)
@marks.testrail_id(6236)
@marks.medium
def test_transaction_appears_in_history(self):
recipient = basic_user
sign_in_view = SignInView(self.driver)
sign_in_view.create_user()
home_view = sign_in_view.get_home_view()
transaction_amount = home_view.get_unique_amount()
sender_public_key = home_view.get_public_key()
sender_address = home_view.public_key_to_address(sender_public_key)
home_view.home_button.click()
self.network_api.get_donate(sender_address)
home_view = sign_in_view.create_user()
wallet_view = home_view.wallet_button.click()
wallet_view.set_up_wallet()
wallet_view.wait_balance_changed_on_wallet_screen()
send_transaction = wallet_view.send_transaction_button.click()
send_transaction.amount_edit_box.click()
send_transaction.amount_edit_box.set_value(transaction_amount)
send_transaction.confirm()
send_transaction.chose_recipient_button.click()
send_transaction.enter_recipient_address_button.click()
send_transaction.enter_recipient_address_input.set_value(recipient['address'])
send_transaction.done_button.click()
send_transaction.sign_transaction_button.click()
send_transaction.sign_transaction()
self.network_api.find_transaction_by_unique_amount(recipient['address'], transaction_amount)
address = wallet_view.get_wallet_address()[2:]
self.network_api.get_donate(address)
recipient = "0x"+basic_user['address']
sending_amount = "0.08"
wallet_view.send_transaction(asset_name='ETHro', amount=sending_amount, recipient=recipient, sign_transaction=True)
transactions_view = wallet_view.transaction_history_button.click()
transactions_view.transactions_table.find_transaction(amount=transaction_amount)
transactions_view.transactions_table.find_transaction(amount=sending_amount)
transactions_view.transactions_table.find_transaction(amount="0.1")
@marks.testrail_id(5461)
@marks.medium

View File

@ -125,7 +125,7 @@ class ClearButton(BaseButton):
class BlockContactButton(BaseButton):
def __init__(self, driver):
super(BlockContactButton, self).__init__(driver)
self.locator = self.Locator.accessibility_id('block-contact')
self.locator = self.Locator.accessibility_id('block-contact-confirm')
class UnblockContactButton(BaseButton):