Fix wallet tests

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Serhy 2019-12-04 20:39:18 +02:00 committed by Churikova Tetiana
parent e8150d7187
commit 0b2490d20e
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
3 changed files with 11 additions and 6 deletions

View File

@ -157,7 +157,6 @@ class TestWalletManagement(SingleDeviceTestCase):
send_transaction.deny_button.click() send_transaction.deny_button.click()
send_transaction.element_by_text(camera_access_error_text).wait_for_visibility_of_element(3) send_transaction.element_by_text(camera_access_error_text).wait_for_visibility_of_element(3)
send_transaction.ok_button.click() send_transaction.ok_button.click()
send_transaction.chose_recipient_button.click()
send_transaction.scan_qr_code_button.click() send_transaction.scan_qr_code_button.click()
send_transaction.deny_button.wait_for_visibility_of_element(2) send_transaction.deny_button.wait_for_visibility_of_element(2)

View File

@ -222,6 +222,8 @@ class TestTransactionDApp(SingleDeviceTestCase):
@marks.testrail_id(5685) @marks.testrail_id(5685)
@marks.medium @marks.medium
@marks.skip
# TODO skip until tooltips visibility in page xml is fixed pr-9555
def test_not_enough_eth_for_gas_validation_from_dapp(self): def test_not_enough_eth_for_gas_validation_from_dapp(self):
singin_view = SignInView(self.driver) singin_view = SignInView(self.driver)
home_view = singin_view.create_user() home_view = singin_view.create_user()

View File

@ -168,7 +168,7 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
recipient = "0x"+basic_user['address'] recipient = "0x"+basic_user['address']
sending_amount = "0.08" sending_amount = "0.08"
asset = 'ETHro' asset = 'ETHro'
wallet_view.send_transaction(asset_name=asset, amount=sending_amount, recipient=recipient, sign_transaction=True) wallet_view.send_transaction(asset_name='ETH', amount=sending_amount, recipient=recipient, sign_transaction=True)
wallet_view.wait_balance_is_changed(asset, wallet_view.get_asset_amount_by_name(asset)) wallet_view.wait_balance_is_changed(asset, wallet_view.get_asset_amount_by_name(asset))
transactions_view = wallet_view.transaction_history_button.click() transactions_view = wallet_view.transaction_history_button.click()
transactions_view.transactions_table.find_transaction(amount=sending_amount) transactions_view.transactions_table.find_transaction(amount=sending_amount)
@ -287,6 +287,8 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5423) @marks.testrail_id(5423)
@marks.medium @marks.medium
@marks.skip
# TODO skip until tooltips visibility in page xml is fixed pr-9555
def test_send_valid_amount_after_insufficient_funds_error(self): def test_send_valid_amount_after_insufficient_funds_error(self):
sender = transaction_senders['T'] sender = transaction_senders['T']
sign_in_view = SignInView(self.driver) sign_in_view = SignInView(self.driver)
@ -315,6 +317,8 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5471) @marks.testrail_id(5471)
@marks.medium @marks.medium
@marks.skip
# TODO skip until tooltips visibility in page xml is fixed pr-9555
def test_insufficient_funds_wallet_0_balance(self): def test_insufficient_funds_wallet_0_balance(self):
sign_in_view = SignInView(self.driver) sign_in_view = SignInView(self.driver)
sign_in_view.create_user() sign_in_view.create_user()
@ -336,6 +340,8 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5412) @marks.testrail_id(5412)
@marks.high @marks.high
@marks.skip
# TODO skip until tooltips visibility in page xml is fixed pr-9555
def test_insufficient_funds_wallet_positive_balance(self): def test_insufficient_funds_wallet_positive_balance(self):
sender = wallet_users['A'] sender = wallet_users['A']
sign_in_view = SignInView(self.driver) sign_in_view = SignInView(self.driver)
@ -448,7 +454,8 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
sign_in_view.create_user() sign_in_view.create_user()
wallet_view = sign_in_view.wallet_button.click() wallet_view = sign_in_view.wallet_button.click()
wallet_view.set_up_wallet() wallet_view.set_up_wallet()
wallet_view.accounts_status_account.click() wallet_view.toggle_airplane_mode()
wallet_view.accounts_status_account.click_until_presence_of_element(wallet_view.send_transaction_button)
send_transaction = wallet_view.send_transaction_button.click() send_transaction = wallet_view.send_transaction_button.click()
send_transaction.chose_recipient_button.click() send_transaction.chose_recipient_button.click()
send_transaction.accounts_button.click() send_transaction.accounts_button.click()
@ -457,9 +464,6 @@ class TestTransactionWalletSingleDevice(SingleDeviceTestCase):
send_transaction.amount_edit_box.set_value("0") send_transaction.amount_edit_box.set_value("0")
send_transaction.confirm() send_transaction.confirm()
send_transaction.sign_transaction_button.click() send_transaction.sign_transaction_button.click()
send_transaction.cancel_button.click()
send_transaction.toggle_airplane_mode()
send_transaction.sign_transaction_button.click()
if send_transaction.sign_with_password.is_element_displayed(): if send_transaction.sign_with_password.is_element_displayed():
self.driver.fail("Sign transaction button is active in offline mode") self.driver.fail("Sign transaction button is active in offline mode")