From 5c82a022f6ec7f7c67a75c881834d85e897e2c59 Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Wed, 15 Nov 2023 19:40:10 +0200 Subject: [PATCH] e2e: fixes 15.11 --- .../critical/chats/test_1_1_public_chats.py | 30 +++++++++---------- .../chats/test_public_chat_browsing.py | 6 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) 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 be47ae4f9f4c..d963bcb673bd 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 @@ -158,20 +158,20 @@ def test_1_1_chat_emoji_send_reply_and_open_link(self): except Failed: self.errors.append("Link message reaction is not shown for the sender") - self.home_2.just_fyi("Check 'Open in Status' option") - # url_to_open = 'http://status.im' # ToDo: enable when a bug with Status link is fixed - url_to_open = 'https://coinmarketcap.com/' - 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('Private, Secure Communication').is_element_displayed(60): - if not web_view.element_by_text_part( - "Today's Cryptocurrency Prices by Market Cap").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") + # self.home_2.just_fyi("Check 'Open in Status' option") + # # url_to_open = 'http://status.im' # ToDo: enable when a bug with Status link is fixed + # url_to_open = 'https://coinmarketcap.com/' + # 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('Private, Secure Communication').is_element_displayed(60): + # if not web_view.element_by_text_part( + # "Today's Cryptocurrency Prices by Market Cap").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") # ToDo: temp self.errors.verify_no_errors() @@ -293,7 +293,7 @@ def test_1_1_chat_non_latin_messages_stack_update_profile_photo(self): sent_time_variants = self.chat_2.convert_device_time_to_chat_timestamp() if timestamp not in sent_time_variants: self.errors.append( - 'Timestamp on message %s does not correspond expected [%s]' % (timestamp, *sent_time_variants)) + 'Timestamp on message %s does not correspond expected %s' % (timestamp, sent_time_variants)) except NoSuchElementException: self.errors.append("No timestamp on message %s" % messages[0]) for message in [messages[1], messages[2]]: 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 43fe64ced0d3..960c6e0f3a3a 100644 --- a/test/appium/tests/critical/chats/test_public_chat_browsing.py +++ b/test/appium/tests/critical/chats/test_public_chat_browsing.py @@ -248,7 +248,7 @@ def test_restore_multiaccount_with_waku_backup_remove_switch(self): self.home.just_fyi("Check that can login with different user") self.home.reopen_app(sign_in=False) - self.sign_in.show_profiles_button.click() + self.sign_in.show_profiles_button.wait_and_click() self.sign_in.element_by_text(self.username).click() self.sign_in.sign_in() self.home.communities_tab.click() @@ -257,7 +257,7 @@ def test_restore_multiaccount_with_waku_backup_remove_switch(self): self.home.just_fyi("Check that can remove user from logged out state") self.home.reopen_app(sign_in=False) - self.sign_in.show_profiles_button.click() + self.sign_in.show_profiles_button.wait_and_click() user_card = self.sign_in.get_user(username=self.username) user_card.open_user_options() self.sign_in.remove_profile_button.click() @@ -267,7 +267,7 @@ def test_restore_multiaccount_with_waku_backup_remove_switch(self): self.home.just_fyi("Check that removed user is not shown in the list anymore") self.home.reopen_app(sign_in=False) - self.sign_in.show_profiles_button.click() + self.sign_in.show_profiles_button.wait_and_click() if self.sign_in.element_by_text(self.username).is_element_displayed(): self.errors.append("Removed user is re-appeared after relogin!")