e2e: fix for sharing community flow
This commit is contained in:
parent
32fc7b14e8
commit
76773a4165
|
@ -404,6 +404,8 @@ class TestGroupChatMultipleDeviceMergedNewUI(MultipleSharedDeviceTestCase):
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(703495)
|
@marks.testrail_id(703495)
|
||||||
|
@marks.xfail(
|
||||||
|
reason="Chat is not unmuted after expected time: https://github.com/status-im/status-mobile/issues/19627")
|
||||||
def test_group_chat_mute_chat(self):
|
def test_group_chat_mute_chat(self):
|
||||||
[self.homes[i].navigate_back_to_home_view() for i in range(3)]
|
[self.homes[i].navigate_back_to_home_view() for i in range(3)]
|
||||||
|
|
||||||
|
|
|
@ -782,7 +782,7 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.channel_1.just_fyi("Receiver is checking if initial messages were delivered")
|
self.channel_1.just_fyi("Receiver is checking if initial messages were delivered")
|
||||||
for message in message_to_edit, message_to_delete:
|
for message in message_to_edit, message_to_delete:
|
||||||
if not self.channel_1.chat_element_by_text(message).is_element_displayed(30):
|
if not self.channel_1.chat_element_by_text(message).is_element_displayed(30):
|
||||||
self.channel_1.driver.fail("Message '%s' was not received")
|
self.channel_1.driver.fail("Message '%s' was not received" % message)
|
||||||
|
|
||||||
self.channel_2.just_fyi("Turning on airplane mode and editing/deleting messages")
|
self.channel_2.just_fyi("Turning on airplane mode and editing/deleting messages")
|
||||||
self.channel_2.driver.set_network_connection(ConnectionType.AIRPLANE_MODE)
|
self.channel_2.driver.set_network_connection(ConnectionType.AIRPLANE_MODE)
|
||||||
|
|
|
@ -52,8 +52,8 @@ class TestDeepLinksOneDevice(MultipleSharedDeviceTestCase):
|
||||||
"Status mobile QA community max",
|
"Status mobile QA community max",
|
||||||
"https://status.app/c/G1AAAGR0G-IRb2YJD4lRXwLusAFnGrDHGNl6Wt55MIARwVYvarnO873011-fdVSz1kHSan-qq0G96vOaMqyTRhJnQV74KCUr#zQ3shb9irJR66rhG1E8sQZX8pDU3dpGm4daYSmPVDd2e73ewE":
|
"https://status.app/c/G1AAAGR0G-IRb2YJD4lRXwLusAFnGrDHGNl6Wt55MIARwVYvarnO873011-fdVSz1kHSan-qq0G96vOaMqyTRhJnQV74KCUr#zQ3shb9irJR66rhG1E8sQZX8pDU3dpGm4daYSmPVDd2e73ewE":
|
||||||
"Open community for e2e",
|
"Open community for e2e",
|
||||||
"https://status.app/c/G00AAGS9TbI9mSR-ZNmFrhRjNuEeXAAbcAIUaLLJyjMOG3ACJQ12oIHD78QhzO9s_T5bUeU7rnATWJg3mGgTUemrAg==#zQ3shspPKCZ1VPVQ9dLXGufUGvGphjxVwrcZ6rkZc7S39T4b3":
|
"https://status.app/c/GzAAAORtwyW4xNWM4td0F7hOnYZ1apSqCCRUUR0qxD19n3Ec97fX_aIVIGFWbdUM#zQ3shk6dgK8dYWWSC4m8Jj5c91zyfhfj1fFkgypS8D9gsXkrK":
|
||||||
"closed community"
|
"Closed community"
|
||||||
}
|
}
|
||||||
for url, text in closed_community_urls.items():
|
for url, text in closed_community_urls.items():
|
||||||
self.channel.just_fyi("Opening community '%s' by the url %s" % (text, url))
|
self.channel.just_fyi("Opening community '%s' by the url %s" % (text, url))
|
||||||
|
@ -97,8 +97,8 @@ class TestDeepLinksOneDevice(MultipleSharedDeviceTestCase):
|
||||||
"Status mobile QA community max",
|
"Status mobile QA community max",
|
||||||
"status.app://c/G1AAAGR0G-IRb2YJD4lRXwLusAFnGrDHGNl6Wt55MIARwVYvarnO873011-fdVSz1kHSan-qq0G96vOaMqyTRhJnQV74KCUr#zQ3shb9irJR66rhG1E8sQZX8pDU3dpGm4daYSmPVDd2e73ewE":
|
"status.app://c/G1AAAGR0G-IRb2YJD4lRXwLusAFnGrDHGNl6Wt55MIARwVYvarnO873011-fdVSz1kHSan-qq0G96vOaMqyTRhJnQV74KCUr#zQ3shb9irJR66rhG1E8sQZX8pDU3dpGm4daYSmPVDd2e73ewE":
|
||||||
"Open community for e2e",
|
"Open community for e2e",
|
||||||
"status.app://c/G00AAGS9TbI9mSR-ZNmFrhRjNuEeXAAbcAIUaLLJyjMOG3ACJQ12oIHD78QhzO9s_T5bUeU7rnATWJg3mGgTUemrAg==#zQ3shspPKCZ1VPVQ9dLXGufUGvGphjxVwrcZ6rkZc7S39T4b3":
|
"status.app://c/GzAAAORtwyW4xNWM4td0F7hOnYZ1apSqCCRUUR0qxD19n3Ec97fX_aIVIGFWbdUM#zQ3shk6dgK8dYWWSC4m8Jj5c91zyfhfj1fFkgypS8D9gsXkrK":
|
||||||
"closed community"
|
"Closed community"
|
||||||
}
|
}
|
||||||
for link, text in community_links.items():
|
for link, text in community_links.items():
|
||||||
self.channel.just_fyi("Opening community '%s' by the link %s" % (text, link))
|
self.channel.just_fyi("Opening community '%s' by the link %s" % (text, link))
|
||||||
|
|
|
@ -386,7 +386,6 @@ class CommunityView(HomeView):
|
||||||
self.leave_community_button = Button(self.driver, translation_id="leave-community")
|
self.leave_community_button = Button(self.driver, translation_id="leave-community")
|
||||||
self.edit_community_button = Button(self.driver, translation_id="edit-community")
|
self.edit_community_button = Button(self.driver, translation_id="edit-community")
|
||||||
self.share_community_button = Button(self.driver, accessibility_id="share-community")
|
self.share_community_button = Button(self.driver, accessibility_id="share-community")
|
||||||
self.share_community_link_button = Button(self.driver, accessibility_id="share-community-link")
|
|
||||||
|
|
||||||
# Members
|
# Members
|
||||||
self.invite_people_button = Button(self.driver, accessibility_id="community-invite-people")
|
self.invite_people_button = Button(self.driver, accessibility_id="community-invite-people")
|
||||||
|
@ -500,8 +499,9 @@ class CommunityView(HomeView):
|
||||||
community_element.long_press_until_element_is_shown(self.share_community_button)
|
community_element.long_press_until_element_is_shown(self.share_community_button)
|
||||||
self.share_community_button.click()
|
self.share_community_button.click()
|
||||||
for user_name in user_names_to_share:
|
for user_name in user_names_to_share:
|
||||||
Button(self.driver, xpath="//*[@content-desc='author-primary-name'][@text='%s']" % user_name).click()
|
xpath = "//*[@content-desc='user-avatar']/following-sibling::android.widget.TextView[@text='%s']" % user_name
|
||||||
self.setup_chat_button.click()
|
Button(self.driver, xpath=xpath).click()
|
||||||
|
self.share_invite_button.click()
|
||||||
|
|
||||||
|
|
||||||
class PreviewMessage(ChatElementByText):
|
class PreviewMessage(ChatElementByText):
|
||||||
|
|
Loading…
Reference in New Issue