mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
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
|
@marks.critical
|
||||||
def test_refresh_button_browsing_app_webview(self):
|
def test_refresh_button_browsing_app_webview(self):
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.create_user()
|
home_view = sign_in_view.create_user()
|
||||||
status_test_dapp = sign_in_view.open_status_test_dapp()
|
status_test_dapp = home_view.open_status_test_dapp()
|
||||||
status_test_dapp.transactions_button.click()
|
status_test_dapp.transactions_button.click()
|
||||||
status_test_dapp.find_full_text('Sign message')
|
status_test_dapp.find_full_text('Sign message')
|
||||||
status_test_dapp.browser_refresh_page_button.click()
|
status_test_dapp.browser_refresh_page_button.click()
|
||||||
|
@ -12,8 +12,8 @@ class TestDApps(SingleDeviceTestCase):
|
|||||||
@marks.critical
|
@marks.critical
|
||||||
def test_filters_from_daap(self):
|
def test_filters_from_daap(self):
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.create_user()
|
home_view = sign_in_view.create_user()
|
||||||
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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.transactions_button.click()
|
status_test_dapp.transactions_button.click()
|
||||||
status_test_dapp.test_filters_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):
|
def test_request_public_key_status_test_daap(self):
|
||||||
user = basic_user
|
user = basic_user
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.recover_access(passphrase=user['passphrase'])
|
home_view = sign_in_view.recover_access(passphrase=user['passphrase'])
|
||||||
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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.status_api_button.click()
|
status_test_dapp.status_api_button.click()
|
||||||
status_test_dapp.request_contact_code_button.click()
|
status_test_dapp.request_contact_code_button.click()
|
||||||
|
@ -14,10 +14,10 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||||||
def test_send_transaction_from_daap(self):
|
def test_send_transaction_from_daap(self):
|
||||||
sender = transaction_senders['K']
|
sender = transaction_senders['K']
|
||||||
sign_in_view = SignInView(self.driver)
|
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']
|
address = sender['address']
|
||||||
initial_balance = self.network_api.get_balance(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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.assets_button.click()
|
status_test_dapp.assets_button.click()
|
||||||
send_transaction_view = status_test_dapp.request_stt_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):
|
def test_sign_message_from_daap(self):
|
||||||
password = 'password_for_daap'
|
password = 'password_for_daap'
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.create_user(password=password)
|
home_view = sign_in_view.create_user(password=password)
|
||||||
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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.transactions_button.click()
|
status_test_dapp.transactions_button.click()
|
||||||
send_transaction_view = status_test_dapp.sign_message_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):
|
def test_deploy_contract_from_daap(self):
|
||||||
sender = transaction_senders['L']
|
sender = transaction_senders['L']
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.recover_access(sender['passphrase'])
|
home_view = sign_in_view.recover_access(sender['passphrase'])
|
||||||
wallet_view = sign_in_view.wallet_button.click()
|
wallet_view = home_view.wallet_button.click()
|
||||||
wallet_view.set_up_wallet()
|
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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.transactions_button.click()
|
status_test_dapp.transactions_button.click()
|
||||||
send_transaction_view = status_test_dapp.deploy_contract_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):
|
def test_logcat_send_transaction_from_daap(self):
|
||||||
sender = transaction_senders['M']
|
sender = transaction_senders['M']
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.recover_access(sender['passphrase'], unique_password)
|
home_view = sign_in_view.recover_access(sender['passphrase'], unique_password)
|
||||||
wallet_view = sign_in_view.wallet_button.click()
|
wallet_view = home_view.wallet_button.click()
|
||||||
wallet_view.set_up_wallet()
|
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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.assets_button.click()
|
status_test_dapp.assets_button.click()
|
||||||
send_transaction_view = status_test_dapp.request_stt_button.click()
|
send_transaction_view = status_test_dapp.request_stt_button.click()
|
||||||
@ -82,8 +82,8 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||||||
@marks.critical
|
@marks.critical
|
||||||
def test_logcat_sign_message_from_daap(self):
|
def test_logcat_sign_message_from_daap(self):
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.create_user(password=unique_password)
|
home_view = sign_in_view.create_user(password=unique_password)
|
||||||
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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.transactions_button.click()
|
status_test_dapp.transactions_button.click()
|
||||||
send_transaction_view = status_test_dapp.sign_message_button.click()
|
send_transaction_view = status_test_dapp.sign_message_button.click()
|
||||||
@ -97,8 +97,8 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
|||||||
@marks.high
|
@marks.high
|
||||||
def test_request_eth_in_status_test_dapp(self):
|
def test_request_eth_in_status_test_dapp(self):
|
||||||
sign_in_view = SignInView(self.driver)
|
sign_in_view = SignInView(self.driver)
|
||||||
sign_in_view.create_user()
|
home_view = sign_in_view.create_user()
|
||||||
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.wait_for_d_aap_to_load()
|
||||||
status_test_dapp.assets_button.click()
|
status_test_dapp.assets_button.click()
|
||||||
status_test_dapp.request_eth_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()
|
start_new_chat_view.status_test_dapp_button.scroll_to_element()
|
||||||
status_test_dapp = start_new_chat_view.status_test_dapp_button.click()
|
status_test_dapp = start_new_chat_view.status_test_dapp_button.click()
|
||||||
start_new_chat_view.open_button.click()
|
start_new_chat_view.open_button.click()
|
||||||
|
for _ in range(2):
|
||||||
|
status_test_dapp.allow_button.click()
|
||||||
return status_test_dapp
|
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)
|
recover_access_view.sign_in_button.click_until_presence_of_element(recover_access_view.home_button)
|
||||||
return self.get_home_view()
|
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):
|
def sign_in(self, password=common_password):
|
||||||
if self.ok_button.is_element_displayed():
|
if self.ok_button.is_element_displayed():
|
||||||
self.ok_button.click()
|
self.ok_button.click()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user