e2e: fixes 01.02
This commit is contained in:
parent
675897c9ab
commit
3f9cd3a688
|
@ -8,6 +8,7 @@ from selenium.common.exceptions import TimeoutException, NoSuchElementException
|
|||
|
||||
from tests import marks, run_in_parallel, transl
|
||||
from tests.base_test_case import MultipleSharedDeviceTestCase, create_shared_drivers
|
||||
from views.base_element import Button
|
||||
from views.sign_in_view import SignInView
|
||||
|
||||
|
||||
|
@ -161,13 +162,15 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
|
|||
|
||||
self.home_2.just_fyi("Check 'Open in Status' option")
|
||||
# url_to_open = 'http://status.app'
|
||||
url_to_open = 'https://www.ethereum.org/en/run-a-node/'
|
||||
url_to_open = 'https://github.com/status-im/status-mobile'
|
||||
self.chat_1.send_message(url_to_open)
|
||||
chat_element = self.chat_2.chat_element_by_text(url_to_open)
|
||||
if chat_element.is_element_displayed(120):
|
||||
chat_element.click_on_link_inside_message_body()
|
||||
web_view = self.chat_2.open_in_status_button.click()
|
||||
if not web_view.element_by_text("Take full control. Run your own node.").is_element_displayed(60):
|
||||
text_element = web_view.element_by_text("a free (libre) open source, mobile OS for Ethereum")
|
||||
sign_in_button = Button(self.chat_2.driver, xpath="//android.view.View[@content-desc='Sign in']")
|
||||
if not text_element.is_element_displayed(30) or not sign_in_button.is_element_displayed(30):
|
||||
self.errors.append('URL was not opened from 1-1 chat')
|
||||
else:
|
||||
self.errors.append("Message with URL was not received")
|
||||
|
|
|
@ -1090,8 +1090,6 @@ class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase):
|
|||
self.errors.verify_no_errors()
|
||||
|
||||
@marks.testrail_id(703629)
|
||||
@marks.xfail(
|
||||
reason="Can't join a community if admin goes offline, https://github.com/status-im/status-mobile/issues/17678")
|
||||
def test_community_join_when_node_owner_offline(self):
|
||||
for home in self.homes:
|
||||
home.navigate_back_to_home_view()
|
||||
|
@ -1143,7 +1141,8 @@ class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase):
|
|||
else:
|
||||
self.errors.append("Community channel is not displayed for user before join")
|
||||
self.community_2.toast_content_element.wait_for_invisibility_of_element(30)
|
||||
self.community_2.close_community_view_button.click()
|
||||
self.community_2.close_community_view_button.click_until_absense_of_element(
|
||||
self.community_2.close_community_view_button)
|
||||
self.home_2.pending_communities_tab.click()
|
||||
if self.home_2.get_chat(community_name, community=True).is_element_displayed():
|
||||
self.home_2.get_chat(community_name, community=True).click()
|
||||
|
@ -1166,7 +1165,8 @@ class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase):
|
|||
# ToDo: add verification when toast is fixed
|
||||
if not self.community_2.community_status_joined.is_element_displayed():
|
||||
self.errors.append("Joined status is not displayed")
|
||||
self.community_2.close_community_view_button.click()
|
||||
self.community_2.close_community_view_button.click_until_absense_of_element(
|
||||
self.community_2.close_community_view_button)
|
||||
self.home_2.joined_communities_tab.click()
|
||||
chat_element = self.home_2.get_chat(community_name, community=True)
|
||||
if chat_element.is_element_displayed(30):
|
||||
|
|
Loading…
Reference in New Issue