mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-04 04:45:19 +00:00
Fixed onboarding from DApp and openning links tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
parent
36ef541037
commit
9a088ffc54
@ -325,7 +325,8 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||
profile_1.mail_server_by_name(server_name).click()
|
||||
profile_1.mail_server_connect_button.click()
|
||||
profile_1.confirm_button.click()
|
||||
sign_in_1.sign_in()
|
||||
profile_1.get_back_to_home_view()
|
||||
profile_1.home_button.click()
|
||||
|
||||
chat_1 = home_1.add_contact(public_key)
|
||||
message = 'test message'
|
||||
|
@ -201,9 +201,9 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||
chat_2.element_starts_with_text(url_message, 'button').click()
|
||||
web_view = chat_2.open_in_status_button.click()
|
||||
try:
|
||||
web_view.find_full_text('Status, the Ethereum discovery tool.')
|
||||
web_view.find_full_text('Access a Better Web, Anywhere')
|
||||
except TimeoutException:
|
||||
self.errors.append('URL was not opened from 1-1 chat')
|
||||
self.errors.append('Device 2: URL was not opened from 1-1 chat')
|
||||
web_view.back_to_home_button.click()
|
||||
chat_2.get_back_to_home_view()
|
||||
|
||||
@ -215,9 +215,9 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
||||
chat_1.element_starts_with_text(url_message, 'button').click()
|
||||
web_view = chat_1.open_in_status_button.click()
|
||||
try:
|
||||
web_view.find_full_text('Status, the Ethereum discovery tool.')
|
||||
web_view.find_full_text('Access a Better Web, Anywhere')
|
||||
except TimeoutException:
|
||||
self.errors.append('URL was not opened from 1-1 chat')
|
||||
self.errors.append('Device 1: URL was not opened from 1-1 chat')
|
||||
self.verify_no_errors()
|
||||
|
||||
@marks.testrail_id(5326)
|
||||
|
@ -110,38 +110,27 @@ class TestTransactionDApp(SingleDeviceTestCase):
|
||||
|
||||
@marks.testrail_id(5355)
|
||||
@marks.critical
|
||||
def test_onboarding_screen_is_shown_for_account_when_requesting_tokens(self):
|
||||
def test_onboarding_screen_when_requesting_tokens_for_new_account(self):
|
||||
signin_view = SignInView(self.driver)
|
||||
home_view = signin_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()
|
||||
send_transaction_view = status_test_dapp.request_stt_button.click()
|
||||
|
||||
onboarding_screen_error_msg = 'It seems onborading screen is not shown.'
|
||||
|
||||
if not send_transaction_view.onboarding_message.is_element_displayed():
|
||||
self.driver.fail(onboarding_screen_error_msg)
|
||||
self.driver.fail('It seems onboarding screen is not shown.')
|
||||
|
||||
send_transaction_view.click_system_back_button()
|
||||
if not status_test_dapp.assets_button.is_element_displayed():
|
||||
self.driver.fail('Could not back to status test dapp screen.')
|
||||
|
||||
status_test_dapp.click_system_back_button()
|
||||
profile = home_view.profile_button.click()
|
||||
signin_view = profile.logout()
|
||||
|
||||
sender = transaction_senders['U']
|
||||
passphrase = sender['passphrase']
|
||||
|
||||
home_view = signin_view.recover_access(passphrase=passphrase)
|
||||
@marks.testrail_id(5677)
|
||||
@marks.high
|
||||
def test_onboarding_screen_when_requesting_tokens_for_recovered_account(self):
|
||||
signin_view = SignInView(self.driver)
|
||||
home_view = signin_view.recover_access(passphrase=transaction_senders['U']['passphrase'])
|
||||
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()
|
||||
|
||||
if not send_transaction_view.onboarding_message.is_element_displayed():
|
||||
self.driver.fail(onboarding_screen_error_msg)
|
||||
self.driver.fail('It seems onboarding screen is not shown.')
|
||||
|
||||
@marks.testrail_id(5380)
|
||||
@marks.high
|
||||
|
Loading…
x
Reference in New Issue
Block a user