From 07d8bf0d19a0fed6589a2c40b058e3172e67d815 Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil Date: Fri, 15 Dec 2023 14:29:13 +0200 Subject: [PATCH] Share community via URL with any privileges (#18131) --- status-go-version.json | 6 +++--- test/appium/tests/activity_center/test_activity_center.py | 3 --- .../tests/critical/chats/test_public_chat_browsing.py | 4 ---- test/appium/views/chat_view.py | 5 +---- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/status-go-version.json b/status-go-version.json index 634800f936..51d316fc49 100644 --- a/status-go-version.json +++ b/status-go-version.json @@ -3,7 +3,7 @@ "_comment": "Instead use: scripts/update-status-go.sh ", "owner": "status-im", "repo": "status-go", - "version": "v0.171.31", - "commit-sha1": "271778a1e07e585a12790b4e2226f13e36ea89f4", - "src-sha256": "1c998kyhya98a0zp795i3xrx2r08yjdaifb32ylr4snjjln6k34c" + "version": "v0.171.34", + "commit-sha1": "90c31afe7ca16f36b4c4ffa4604bf0c7e70c35e1", + "src-sha256": "1f7bdqqzwksj9yn7r28jh8kgab220hvkl5pdv27didgyd6fw0z0j" } diff --git a/test/appium/tests/activity_center/test_activity_center.py b/test/appium/tests/activity_center/test_activity_center.py index 3ad0fbe9be..6493347025 100644 --- a/test/appium/tests/activity_center/test_activity_center.py +++ b/test/appium/tests/activity_center/test_activity_center.py @@ -245,7 +245,6 @@ class TestActivityMultipleDevicePR(MultipleSharedDeviceTestCase): self.home_1.get_to_community_channel_from_home(self.community_name) self.chat_2 = self.home_2.get_chat(self.username_1).click() - self.chat_2.chat_element_by_text(self.community_name).view_community_button.click() self.community_2.join_community() self.channel_2 = self.community_2.get_channel(self.channel_name).click() @@ -387,7 +386,6 @@ class TestActivityMultipleDevicePRTwo(MultipleSharedDeviceTestCase): self.home_1.get_to_community_channel_from_home(self.community_name) self.chat_2 = self.home_2.get_chat(self.username_1).click() - self.chat_2.chat_element_by_text(self.community_name).view_community_button.click() self.community_2.join_community() self.channel_2 = self.community_2.get_channel(self.channel_name).click() self.channel_2.chat_message_input.wait_for_visibility_of_element(20) @@ -448,7 +446,6 @@ class TestActivityMultipleDevicePRTwo(MultipleSharedDeviceTestCase): self.home_2.navigate_back_to_home_view() self.home_2.chats_tab.click() self.chat_2 = self.home_2.get_chat(self.username_1).click() - self.chat_2.chat_element_by_text(community_name).view_community_button.wait_and_click(sec=60) self.community_2.join_community(open_community=False) for home in self.home_1, self.home_2: home.navigate_back_to_home_view() diff --git a/test/appium/tests/critical/chats/test_public_chat_browsing.py b/test/appium/tests/critical/chats/test_public_chat_browsing.py index 085cf6b46b..40a47d8ff6 100644 --- a/test/appium/tests/critical/chats/test_public_chat_browsing.py +++ b/test/appium/tests/critical/chats/test_public_chat_browsing.py @@ -317,7 +317,6 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase): self.home_2.just_fyi("Send message to contact (need for blocking contact) test") self.chat_2.send_message(self.text_message) - self.chat_2.chat_element_by_text(self.community_name).view_community_button.click() self.community_2.join_community() self.channel_2 = self.community_2.get_channel(self.channel_name).click() self.channel_2.chat_message_input.wait_for_visibility_of_element(20) @@ -838,7 +837,6 @@ class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase): self.home_2.just_fyi("Send message to contact (need for blocking contact) test") self.chat_2.send_message(self.text_message) - self.chat_2.chat_element_by_text(self.community_name).view_community_button.click() self.community_2.join_community() self.channel_2 = self.community_2.get_channel(self.channel_name).click() @@ -1014,7 +1012,6 @@ class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase): self.home_2.get_chat(self.username_1).click() control_message_1_1_chat = "it is just a message text" self.chat_2.send_message(control_message_1_1_chat) - self.chat_2.chat_element_by_text(community_name).view_community_button.click() self.community_2.join_community(open_community=False) self.home_1.just_fyi("Device 1 accepts the community request") @@ -1098,7 +1095,6 @@ class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase): self.home_2.just_fyi("Device 2 requests to join the community") self.home_2.jump_to_messages_home() self.home_2.get_chat(self.username_1).click() - self.chat_2.chat_element_by_text(community_name).view_community_button.click() self.community_2.join_community(open_community=False) exp_text = "You requested to join ā€œ%sā€" % community_name if self.community_2.toast_content_element.is_element_displayed(10): diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index 48570a6345..b9025e9602 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -322,10 +322,6 @@ class ChatElementByText(Text): return PinnedByLabelText(self.driver, self.locator) - @property - def view_community_button(self): - return BaseElement(self.driver, xpath=self.locator + "//*[@text='View']") - class UsernameOptions(Button): def __init__(self, driver, username): @@ -425,6 +421,7 @@ class CommunityView(HomeView): def join_community(self, password=common_password, open_community=True): self.driver.info("Joining community") + ChatView(self.driver).chat_element_by_text("https://status.app/c/").click_on_link_inside_message_body() self.join_button.click() self.join_community_button.scroll_and_click() self.password_input.send_keys(password)