added clicks on allow button
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
fc94abbef0
commit
2e7d89e690
|
@ -101,8 +101,8 @@ class TestBrowsing(SingleDeviceTestCase):
|
|||
@marks.critical
|
||||
def test_refresh_button_browsing_app_webview(self):
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.create_user()
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
home_view = sign_in_view.create_user()
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.transactions_button.click()
|
||||
status_test_dapp.find_full_text('Sign message')
|
||||
status_test_dapp.browser_refresh_page_button.click()
|
||||
|
|
|
@ -12,8 +12,8 @@ class TestDApps(SingleDeviceTestCase):
|
|||
@marks.critical
|
||||
def test_filters_from_daap(self):
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.create_user()
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
home_view = sign_in_view.create_user()
|
||||
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.test_filters_button.click()
|
||||
|
@ -26,8 +26,8 @@ class TestDApps(SingleDeviceTestCase):
|
|||
def test_request_public_key_status_test_daap(self):
|
||||
user = basic_user
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.recover_access(passphrase=user['passphrase'])
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
home_view = sign_in_view.recover_access(passphrase=user['passphrase'])
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.status_api_button.click()
|
||||
status_test_dapp.request_contact_code_button.click()
|
||||
|
|
|
@ -14,10 +14,10 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||
def test_send_transaction_from_daap(self):
|
||||
sender = transaction_senders['K']
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.recover_access(sender['passphrase'])
|
||||
home_view = sign_in_view.recover_access(sender['passphrase'])
|
||||
address = sender['address']
|
||||
initial_balance = self.network_api.get_balance(address)
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.assets_button.click()
|
||||
send_transaction_view = status_test_dapp.request_stt_button.click()
|
||||
|
@ -32,8 +32,8 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||
def test_sign_message_from_daap(self):
|
||||
password = 'password_for_daap'
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.create_user(password=password)
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
home_view = sign_in_view.create_user(password=password)
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.transactions_button.click()
|
||||
send_transaction_view = status_test_dapp.sign_message_button.click()
|
||||
|
@ -48,10 +48,10 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||
def test_deploy_contract_from_daap(self):
|
||||
sender = transaction_senders['L']
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.recover_access(sender['passphrase'])
|
||||
wallet_view = sign_in_view.wallet_button.click()
|
||||
home_view = sign_in_view.recover_access(sender['passphrase'])
|
||||
wallet_view = home_view.wallet_button.click()
|
||||
wallet_view.set_up_wallet()
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.transactions_button.click()
|
||||
send_transaction_view = status_test_dapp.deploy_contract_button.click()
|
||||
|
@ -67,10 +67,10 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||
def test_logcat_send_transaction_from_daap(self):
|
||||
sender = transaction_senders['M']
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.recover_access(sender['passphrase'], unique_password)
|
||||
wallet_view = sign_in_view.wallet_button.click()
|
||||
home_view = sign_in_view.recover_access(sender['passphrase'], unique_password)
|
||||
wallet_view = home_view.wallet_button.click()
|
||||
wallet_view.set_up_wallet()
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.assets_button.click()
|
||||
send_transaction_view = status_test_dapp.request_stt_button.click()
|
||||
|
@ -82,8 +82,8 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||
@marks.critical
|
||||
def test_logcat_sign_message_from_daap(self):
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.create_user(password=unique_password)
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
home_view = sign_in_view.create_user(password=unique_password)
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.transactions_button.click()
|
||||
send_transaction_view = status_test_dapp.sign_message_button.click()
|
||||
|
@ -97,8 +97,8 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||
@marks.high
|
||||
def test_request_eth_in_status_test_dapp(self):
|
||||
sign_in_view = SignInView(self.driver)
|
||||
sign_in_view.create_user()
|
||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
||||
home_view = sign_in_view.create_user()
|
||||
status_test_dapp = home_view.open_status_test_dapp()
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.assets_button.click()
|
||||
status_test_dapp.request_eth_button.click()
|
||||
|
|
|
@ -167,4 +167,6 @@ class HomeView(BaseView):
|
|||
start_new_chat_view.status_test_dapp_button.scroll_to_element()
|
||||
status_test_dapp = start_new_chat_view.status_test_dapp_button.click()
|
||||
start_new_chat_view.open_button.click()
|
||||
for _ in range(2):
|
||||
status_test_dapp.allow_button.click()
|
||||
return status_test_dapp
|
||||
|
|
|
@ -140,18 +140,6 @@ class SignInView(BaseView):
|
|||
recover_access_view.sign_in_button.click_until_presence_of_element(recover_access_view.home_button)
|
||||
return self.get_home_view()
|
||||
|
||||
def open_status_test_dapp(self):
|
||||
profile_view = self.profile_button.click()
|
||||
profile_view.advanced_button.click()
|
||||
profile_view.debug_mode_toggle.click()
|
||||
home_view = profile_view.home_button.click()
|
||||
start_new_chat_view = home_view.plus_button.click()
|
||||
start_new_chat_view.open_d_app_button.click()
|
||||
start_new_chat_view.status_test_dapp_button.scroll_to_element()
|
||||
status_test_daap = start_new_chat_view.status_test_dapp_button.click()
|
||||
start_new_chat_view.open_button.click()
|
||||
return status_test_daap
|
||||
|
||||
def sign_in(self, password=common_password):
|
||||
if self.ok_button.is_element_displayed():
|
||||
self.ok_button.click()
|
||||
|
|
Loading…
Reference in New Issue