From 5da40ca41245f1c8633ffccbd7e4e4e7e2e68135 Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Wed, 11 Dec 2019 14:24:13 +0100 Subject: [PATCH] removed web allow permissions test Signed-off-by: Andrey Shovkoplyas --- .../atomic/dapps_and_browsing/test_dapps.py | 29 ------------------- .../transactions/test_daaps_transactions.py | 2 +- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/test/appium/tests/atomic/dapps_and_browsing/test_dapps.py b/test/appium/tests/atomic/dapps_and_browsing/test_dapps.py index 503184f597..988d3fee7f 100644 --- a/test/appium/tests/atomic/dapps_and_browsing/test_dapps.py +++ b/test/appium/tests/atomic/dapps_and_browsing/test_dapps.py @@ -38,35 +38,6 @@ class TestDApps(SingleDeviceTestCase): if not status_test_dapp.element_by_text(user['public_key']).is_element_displayed(): self.driver.fail('Public key is not returned') - @marks.testrail_id(6234) - @marks.high - def test_always_allow_web3_permissions(self): - user = basic_user - sign_in_view = SignInView(self.driver) - sign_in_view.recover_access(passphrase=user['passphrase']) - dapp_view = sign_in_view.dapp_tab_button.click() - - dapp_view.just_fyi('check that web3 permissions window is shown') - if not dapp_view.element_by_text_part('ÐApps can access my wallet').is_element_displayed(): - self.errors.append('Permissions window is not shown!') - - dapp_view.just_fyi('check that can enable "Always allow" and Dapp will not ask for permissions') - dapp_view.always_allow_radio_button.click() - dapp_view.close_web3_permissions_window_button.click() - dapp_view.open_url(test_dapp_url) - status_test_dapp = dapp_view.get_status_test_dapp_view() - if status_test_dapp.allow_button.is_element_displayed(): - self.driver.append('DApp is asking permissions (Always allow is enabled)') - - dapp_view.just_fyi('check that after relogin window is not reappearing and DApps are still not asking for permissions') - sign_in_view.relogin() - sign_in_view.dapp_tab_button.click() - dapp_view.open_url(test_dapp_url) - if status_test_dapp.allow_button.is_element_displayed(): - self.driver.append('DApp is asking permissions after relogin (Always allow is enabled)') - self.errors.verify_no_errors() - - @marks.testrail_id(6232) @marks.medium def test_switching_accounts_in_dapp(self): diff --git a/test/appium/tests/atomic/transactions/test_daaps_transactions.py b/test/appium/tests/atomic/transactions/test_daaps_transactions.py index 9a79eac737..df11db0c5d 100644 --- a/test/appium/tests/atomic/transactions/test_daaps_transactions.py +++ b/test/appium/tests/atomic/transactions/test_daaps_transactions.py @@ -71,7 +71,7 @@ class TestTransactionDApp(SingleDeviceTestCase): wallet_view.set_up_wallet() status_test_dapp = home_view.open_status_test_dapp() status_test_dapp.wait_for_d_aap_to_load() - status_test_dapp.transactions_button.click() + status_test_dapp.transactions_button.click_until_presence_of_element(status_test_dapp.sign_typed_message_button) send_transaction_view = status_test_dapp.sign_typed_message_button.click() send_transaction_view.enter_password_input.send_keys(common_password) send_transaction_view.sign_button.click_until_presence_of_element(send_transaction_view.ok_button)