Fix switch to home view from Wallet

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2019-03-01 18:00:49 +02:00
parent b7b221daff
commit a98264014f
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
2 changed files with 4 additions and 2 deletions

View File

@ -212,7 +212,9 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
chat_view.chat_options.click_until_presence_of_element(chat_view.view_profile_button) chat_view.chat_options.click_until_presence_of_element(chat_view.view_profile_button)
chat_view.view_profile_button.click() chat_view.view_profile_button.click()
for text in basic_user['username'], 'In contacts', 'Send transaction', 'Send message', 'Contact code': for text in basic_user['username'], 'In contacts', 'Send transaction', 'Send message', 'Contact code':
chat_view.find_full_text(text) if not chat_view.element_by_text(text).scroll_to_element():
self.errors.append('%s is not visible' % text)
self.verify_no_errors()
@marks.testrail_id(5468) @marks.testrail_id(5468)
@marks.medium @marks.medium

View File

@ -476,7 +476,7 @@ class BaseView(object):
while not PlusButton(self.driver).is_element_displayed(2): while not PlusButton(self.driver).is_element_displayed(2):
try: try:
if counter >= 5: if counter >= 5:
return break
self.back_button.click() self.back_button.click()
except (NoSuchElementException, TimeoutException): except (NoSuchElementException, TimeoutException):
counter += 1 counter += 1