2 new browser tests
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
parent
8d85995b33
commit
9ad4939563
|
@ -113,7 +113,7 @@ class TestRecoverAccessFromSignInScreen(SingleDeviceTestCase):
|
|||
|
||||
# check behavior for popup "Custom seed phrase"
|
||||
if popup:
|
||||
text = 'Custom seed phrase'
|
||||
text = 'Invalid seed phrase'
|
||||
common_password = 'qwerty'
|
||||
if not recover_access_view.find_full_text(text):
|
||||
self.errors.append('"%s" text is not shown' % text)
|
||||
|
|
|
@ -19,6 +19,41 @@ class TestBrowsing(SingleDeviceTestCase):
|
|||
for wiki_text in wiki_texts:
|
||||
browsing_view.find_text_part(wiki_text, 15)
|
||||
|
||||
@marks.testrail_id(5395)
|
||||
@marks.medium
|
||||
def test_navigation_history_kept_after_relogin(self):
|
||||
sign_in = SignInView(self.driver)
|
||||
home_view = sign_in.create_user()
|
||||
dapp_view = home_view.dapp_tab_button.click()
|
||||
ru_url = 'https://status.im/ru/'
|
||||
browsing_view = dapp_view.open_url(ru_url)
|
||||
browsing_view.find_text_part('Частная, безопасная связь')
|
||||
|
||||
browsing_view.just_fyi('Navigate to get-involved and back')
|
||||
browsing_view.element_by_text_part('Участвовать').click()
|
||||
browsing_view.browser_previous_page_button.click()
|
||||
|
||||
browsing_view.just_fyi('Relogin and check that tap on "Next" navigates to get-involved')
|
||||
browsing_view.relogin()
|
||||
home_view.dapp_tab_button.click()
|
||||
dapp_view.element_by_text_part(ru_url).click()
|
||||
browsing_view.browser_next_page_button.click()
|
||||
browsing_view.find_text_part('Сообщество с открытым исходным кодом')
|
||||
|
||||
@marks.testrail_id(5438)
|
||||
@marks.medium
|
||||
def test_browser_shows_offline_state(self):
|
||||
sign_in = SignInView(self.driver)
|
||||
home_view = sign_in.create_user()
|
||||
home_view.toggle_airplane_mode()
|
||||
dapp_view = home_view.dapp_tab_button.click()
|
||||
browsing_view = dapp_view.open_url('status.im')
|
||||
offline_texts = ['Unable to load page', 'ERR_INTERNET_DISCONNECTED']
|
||||
for text in offline_texts:
|
||||
browsing_view.find_text_part(text, 15)
|
||||
home_view.toggle_airplane_mode()
|
||||
browsing_view.browser_refresh_page_button.click_until_presence_of_element(browsing_view.element_by_text_part('An Open Source Community'))
|
||||
|
||||
@marks.testrail_id(5465)
|
||||
@marks.medium
|
||||
def test_open_invalid_link(self):
|
||||
|
|
Loading…
Reference in New Issue