From 2e0643fabe0a0e90f8ca7e41b5bc5f69cd5d17de 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 be47ae4f9f..d963bcb673 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 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase): 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 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase): 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 43fe64ced0..960c6e0f3a 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 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase): 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 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase): 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 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase): 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!")