From 9fea5c970434763be876e69f5fad4643210b445e Mon Sep 17 00:00:00 2001 From: pavloburykh Date: Fri, 23 Sep 2022 13:05:40 +0300 Subject: [PATCH] e2e: e2e fixes --- test/appium/tests/critical/chats/test_1_1_public_chats.py | 2 +- test/appium/tests/medium/test_activity_center.py | 4 ++-- test/appium/tests/medium/test_chats_m.py | 2 ++ 3 files changed, 5 insertions(+), 3 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 250caa2314..564e23f2b4 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 @@ -529,7 +529,7 @@ class TestOneToOneChatMultipleSharedDevices(MultipleSharedDeviceTestCase): self.home_2.just_fyi('check share and save options on opened image') self.chat_2.image_message_in_chat.scroll_to_element(direction='up') - self.chat_2.image_message_in_chat.click() + self.chat_2.image_message_in_chat.click_until_presence_of_element(self.chat_2.share_image_icon_button) self.chat_2.share_image_icon_button.click() self.chat_2.share_via_messenger() if not self.chat_2.image_in_android_messenger.is_element_present(): diff --git a/test/appium/tests/medium/test_activity_center.py b/test/appium/tests/medium/test_activity_center.py index 54b4f8519c..6176107482 100644 --- a/test/appium/tests/medium/test_activity_center.py +++ b/test/appium/tests/medium/test_activity_center.py @@ -153,7 +153,7 @@ class TestActivityCenterMultipleDeviceMedium(MultipleSharedDeviceTestCase): self.home_1.just_fyi("Device1 checks unread indicator on Activity center bell") if not self.home_1.notifications_unread_badge.is_element_displayed(): self.errors.append("Unread badge is NOT shown after receiving mentions from Group") - self.home_1.notifications_unread_badge.click_until_absense_of_element(self.home_1.plus_button) + self.home_1.notifications_unread_badge.click_until_absense_of_element(self.home_1.plus_button, 6) self.home_1.just_fyi("Check that notification from group is presented in Activity Center") if not self.home_1.get_chat_from_activity_center_view( @@ -172,6 +172,6 @@ class TestActivityCenterMultipleDeviceMedium(MultipleSharedDeviceTestCase): self.home_1.just_fyi("Check there is an empty view on Activity Center") self.home_1.notifications_button.click() if not self.home_1.element_by_translation_id('empty-activity-center').is_element_present(): - self.errors.append("Activity Center still has some chats after user opened all of them") + self.errors.append("Activity Center still has some chats after user has opened all of them") self.errors.verify_no_errors() diff --git a/test/appium/tests/medium/test_chats_m.py b/test/appium/tests/medium/test_chats_m.py index 3c35885e57..3a823691a8 100644 --- a/test/appium/tests/medium/test_chats_m.py +++ b/test/appium/tests/medium/test_chats_m.py @@ -863,6 +863,8 @@ class TestChatKeycardMentionsMediumMultipleDevice(MultipleSharedDeviceTestCase): self.home_2 = self.device_2.recover_access(passphrase=self.sender['passphrase'], keycard=True, enable_notifications=True) + self.home_2.element_by_text_part('Background service').wait_for_invisibility_of_element() + [home.ens_banner_close_button.click_if_shown() for home in (self.home_1, self.home_2)] self.wallet_2 = self.home_2.wallet_button.click()