mirror of
https://github.com/status-im/status-react.git
synced 2025-01-27 11:16:03 +00:00
Adopt e2e to new Status.im design
Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
parent
f329ca9bdf
commit
71852bf111
@ -203,7 +203,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
|||||||
chat_2.element_starts_with_text(url_message, 'button').click()
|
chat_2.element_starts_with_text(url_message, 'button').click()
|
||||||
web_view = chat_2.open_in_status_button.click()
|
web_view = chat_2.open_in_status_button.click()
|
||||||
try:
|
try:
|
||||||
web_view.find_full_text('Access a Better Web, Anywhere')
|
web_view.find_full_text('Private, Secure Communication')
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
self.errors.append('Device 2: 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()
|
web_view.back_to_home_button.click()
|
||||||
@ -218,7 +218,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
|
|||||||
chat_1.element_starts_with_text(url_message, 'button').click()
|
chat_1.element_starts_with_text(url_message, 'button').click()
|
||||||
web_view = chat_1.open_in_status_button.click()
|
web_view = chat_1.open_in_status_button.click()
|
||||||
try:
|
try:
|
||||||
web_view.find_full_text('Access a Better Web, Anywhere')
|
web_view.find_full_text('Private, Secure Communication')
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
self.errors.append('Device 1: 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()
|
self.verify_no_errors()
|
||||||
|
@ -281,7 +281,7 @@ class OpenInStatusButton(BaseButton):
|
|||||||
self.wait_for_visibility_of_element()
|
self.wait_for_visibility_of_element()
|
||||||
|
|
||||||
# 'Open in Status' button already in DOM but need to scroll down so that click action works
|
# '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.driver.info('Tap on %s' % self.name)
|
||||||
self.wait_for_element().click()
|
self.wait_for_element().click()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user