Adopt e2e to new Status.im design

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2019-05-02 20:29:36 +03:00
parent f329ca9bdf
commit 71852bf111
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ 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('Access a Better Web, Anywhere')
web_view.find_full_text('Private, Secure Communication')
except TimeoutException:
self.errors.append('Device 2: URL was not opened from 1-1 chat')
web_view.back_to_home_button.click()
@ -218,7 +218,7 @@ 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('Access a Better Web, Anywhere')
web_view.find_full_text('Private, Secure Communication')
except TimeoutException:
self.errors.append('Device 1: URL was not opened from 1-1 chat')
self.verify_no_errors()

View File

@ -281,7 +281,7 @@ class OpenInStatusButton(BaseButton):
self.wait_for_visibility_of_element()
# 'Open in Status' button already in DOM but need to scroll down so that click action works
self.driver.swipe(500, 1000, 500, 100)
self.driver.swipe(500, 500, 500, 100)
self.driver.info('Tap on %s' % self.name)
self.wait_for_element().click()