From 288f57192a4470b8e5bf6271a26c9b7f206606b1 Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Wed, 3 Apr 2024 15:51:48 +0300 Subject: [PATCH] e2e: fixes after testet mode enabled changes --- .../activity_center/test_activity_center.py | 2 +- .../critical/chats/test_1_1_public_chats.py | 3 ++- .../chats/test_public_chat_browsing.py | 3 ++- .../saucelabs_sauce_chat.png | Bin 256056 -> 256056 bytes test/appium/views/home_view.py | 4 +--- test/appium/views/profile_view.py | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/appium/tests/activity_center/test_activity_center.py b/test/appium/tests/activity_center/test_activity_center.py index 68a0973631..6fc055cfa0 100644 --- a/test/appium/tests/activity_center/test_activity_center.py +++ b/test/appium/tests/activity_center/test_activity_center.py @@ -25,7 +25,7 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC self.profile_1, self.profile_2 = self.home_1.get_profile_view(), self.home_2.get_profile_view() self.public_key_1 = self.home_1.get_public_key() self.profile_link_2 = self.home_2.get_link_to_profile() - self.home_2.close_share_tab_button.click_until_absense_of_element(self.home_2.link_to_profile_text) + self.home_2.close_share_tab_button.click_until_absense_of_element(self.home_2.link_to_profile_button) [home.navigate_back_to_home_view() for home in self.homes] [home.chats_tab.click() for home in self.homes] diff --git a/test/appium/tests/critical/chats/test_1_1_public_chats.py b/test/appium/tests/critical/chats/test_1_1_public_chats.py index 62b9349a1f..0247d98503 100644 --- a/test/appium/tests/critical/chats/test_1_1_public_chats.py +++ b/test/appium/tests/critical/chats/test_1_1_public_chats.py @@ -147,7 +147,8 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase): url_message = 'Test with link: https://status.im/ here should be nothing unusual.' self.chat_1.send_message(url_message) self.chat_2.chat_element_by_text(url_message).wait_for_element(20) - self.chat_2.quote_message(url_message) + self.chat_2.chat_element_by_text(url_message).long_press_element_by_coordinate(rel_x=0.8, rel_y=0.8) + self.chat_2.reply_message_button.click() self.chat_2.send_message(reply) replied_message = self.chat_1.chat_element_by_text(reply) if replied_message.replied_message_text != url_message: 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 3d45cf418b..1ec028507b 100644 --- a/test/appium/tests/critical/chats/test_public_chat_browsing.py +++ b/test/appium/tests/critical/chats/test_public_chat_browsing.py @@ -477,7 +477,8 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase): self.channel_2.navigate_back_to_chat_view() self.channel_2.just_fyi("Can reply to images") - self.channel_2.quote_message(image_description) + self.channel_2.chat_element_by_text(image_description).long_press_element_by_coordinate(rel_x=0.8, rel_y=0.8) + self.channel_2.reply_message_button.click() message_text = 'reply to image' self.channel_2.chat_message_input.send_keys(message_text) self.channel_2.send_message_button.click() diff --git a/test/appium/views/elements_templates/saucelabs_sauce_chat.png b/test/appium/views/elements_templates/saucelabs_sauce_chat.png index 992554e7c9ba17e3a7eb3d18b83f90eb6ff6b9d8..6e85b2d23b9c06aa90ffd7e59b5ece33170d498f 100644 GIT binary patch delta 47 zcmdmSfq%yZ{)QID7N#xC>!Mh{zU95Qcl+ij=AvF<{!LjsW*!Mh%zU95QfBWVr=AvF=d#Wzp$P!o CUJ<4M diff --git a/test/appium/views/home_view.py b/test/appium/views/home_view.py index 6dbd6922df..9c5d4bb4f6 100644 --- a/test/appium/views/home_view.py +++ b/test/appium/views/home_view.py @@ -247,9 +247,7 @@ class HomeView(BaseView): accessibility_id="create-token-gated-community") self.ens_banner_close_button = Button(self.driver, accessibility_id=":ens-banner-close-button") self.user_name_text = Text( - self.driver, - xpath="//*[@content-desc='new-contact-button']/preceding-sibling::*[1]/*[@content-desc='user-avatar']" + \ - "/following-sibling::android.widget.TextView[1]") + self.driver, xpath="//*[@text='User found']/following-sibling::*/android.widget.TextView[1]") # Notification centre self.notifications_button = Button(self.driver, accessibility_id="notifications-button") diff --git a/test/appium/views/profile_view.py b/test/appium/views/profile_view.py index 9fb897a7c0..f78c7f0824 100644 --- a/test/appium/views/profile_view.py +++ b/test/appium/views/profile_view.py @@ -540,11 +540,11 @@ class ProfileView(BaseView): return self.active_network_name.text def get_sync_code(self): - # Pointing to legacy profile until feature is self.syncing_button.scroll_and_click() self.sync_plus_button.click() self.slide_button_track.swipe_right_on_element(width_percentage=1.3) - self.password_input.send_keys(common_password) + password_input = self.password_input.find_element() + password_input.send_keys(common_password) self.login_button.click() - self.element_by_translation_id("copy-qr").click() - return self.driver.get_clipboard_text() + self.wait_for_staleness_of_element(password_input) + return self.password_input.text