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 9a6717e536..250caa2314 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 @@ -981,7 +981,7 @@ class TestEnsStickersMultipleDevicesMerged(MultipleSharedDeviceTestCase): self.home_1.just_fyi("Close the ENS banner") [home.home_button.double_click() for home in (self.home_1, self.home_2)] - [home.ens_banner_close_button.click() for home in (self.home_1, self.home_2)] + [home.ens_banner_close_button.click_if_shown() for home in (self.home_1, self.home_2)] @marks.testrail_id(702152) def test_ens_purchased_in_profile(self): diff --git a/test/appium/tests/critical/test_pairing_devices_sync.py b/test/appium/tests/critical/test_pairing_devices_sync.py index c64dc2c958..b0bed58e41 100644 --- a/test/appium/tests/critical/test_pairing_devices_sync.py +++ b/test/appium/tests/critical/test_pairing_devices_sync.py @@ -153,7 +153,7 @@ class TestPairingSyncMultipleDevicesMerged(MultipleSharedDeviceTestCase): self.home_1.just_fyi("Close the ENS banner") [home.home_button.double_click() for home in (self.home_1, self.home_2)] - [home.ens_banner_close_button.click() for home in (self.home_1, self.home_2)] + [home.ens_banner_close_button.click_if_shown() for home in (self.home_1, self.home_2)] self.device_2.just_fyi('Pair main and secondary devices') [device.profile_button.double_click() for device in (self.profile_1, self.profile_2)] diff --git a/test/appium/tests/medium/test_browser_profile.py b/test/appium/tests/medium/test_browser_profile.py index e01330830f..0f8a430c71 100644 --- a/test/appium/tests/medium/test_browser_profile.py +++ b/test/appium/tests/medium/test_browser_profile.py @@ -307,6 +307,12 @@ class TestBrowserProfileOneDevice(MultipleSharedDeviceTestCase): chat.set_nickname(nickname) self.home.back_button.click() + self.home.just_fyi('Create community chats') + community_name = 'test community' + community_description, community_pic = "test community description", 'sauce_logo.png' + self.home.create_community(community_name, community_description, set_image=True, file_name=community_pic) + self.home.home_button.double_click() + self.home.just_fyi('Add ENS-user to contacts') user_ens = 'ensmessenger' self.home.add_contact(user_ens) @@ -342,6 +348,10 @@ class TestBrowserProfileOneDevice(MultipleSharedDeviceTestCase): profile.just_fyi('Recover account from seed phrase') self.sign_in.recover_access(' '.join(recovery_phrase.values())) + self.sign_in.just_fyi('Check backup of community') + if not self.home.element_by_text(community_name).is_element_displayed(): + self.errors.append('Community was not backed up') + self.sign_in.just_fyi('Check backup of contact with nickname') profile.profile_button.click() profile.contacts_button.click() diff --git a/test/appium/tests/medium/test_chats_m.py b/test/appium/tests/medium/test_chats_m.py index 81ac2adac5..3c35885e57 100644 --- a/test/appium/tests/medium/test_chats_m.py +++ b/test/appium/tests/medium/test_chats_m.py @@ -225,7 +225,7 @@ class TestTimelineHistoryNodesBootnodesMultipleDeviceMergedMedium(MultipleShared self.errors.verify_no_errors() @marks.testrail_id(702287) - #@marks.xfail(reason="may be failed due to #13333") + @marks.xfail(reason="may be failed due to #13333") def test_profile_can_not_connect_to_custom_history_node_add_delete(self): self.home_1.profile_button.double_click() self.home_2.home_button.double_click() @@ -604,7 +604,7 @@ class TestChatMediumMultipleDevice(MultipleSharedDeviceTestCase): self.drivers[1].reset() self.home_2 = SignInView(self.drivers[1]).recover_access(ens_user['passphrase']) - self.home_2.ens_banner_close_button.wait_and_click() + self.home_2.ens_banner_close_button.click_if_shown() self.home_1.home_button.double_click() self.profile_2 = self.home_2.profile_button.click() ens, full_ens, username_2 = ens_user['ens'], '@%s' % ens_user['ens'], ens_user['username'] @@ -739,6 +739,53 @@ class TestGroupChatMultipleDeviceMediumMerged(MultipleSharedDeviceTestCase): for i in range(1, 3): self.chats[i] = self.homes[i].get_chat(self.chat_name).click() + @marks.testrail_id(702343) + def test_group_chat_send_delete_image(self): + + self.chats[0].just_fyi("Sending image to group chat") + self.chats[0].show_images_button.click() + self.chats[0].allow_button.click() + self.chats[0].first_image_from_gallery.click() + self.chats[0].send_message_button.click() + + self.chats[0].just_fyi("Verify sent image is displayed for every group member") + for i in range(1, 3): + if not self.chats[i].image_message_in_chat.is_element_displayed(60): + self.errors.append("Sent image is not displayed in chat for user driver '%s'" % i) + + self.chats[0].just_fyi("Deleting image message from group chat") + self.chats[0].image_message_in_chat.long_press_element() + self.chats[0].element_by_translation_id("delete").click() + + self.chats[0].just_fyi("Verify deleted image is NOT displayed for every group member") + for i in range(1, 3): + if not self.chats[i].image_message_in_chat.is_element_disappeared(): + self.errors.append("Deleted image is still displayed in chat for user driver '%s'" % i) + + self.errors.verify_no_errors() + + @marks.testrail_id(702404) + def test_group_chat_send_delete_audio(self): + self.chats[0].just_fyi("Sending audio to group chat") + self.chats[0].record_audio_message(message_length_in_seconds=3) + self.chats[0].send_message_button.click() + + self.chats[0].just_fyi("Verify sent audio is displayed for every group member") + for i in range(1, 3): + if not self.chats[i].play_pause_audio_message_button.is_element_displayed(60): + self.errors.append("Sent audio is not displayed in chat for user driver '%s'" % i) + + self.chats[0].just_fyi("Deleting audio message from group chat") + self.chats[0].audio_message_in_chat_timer.long_press_element() + self.chats[0].element_by_translation_id("delete").click() + + self.chats[0].just_fyi("Verify deleted audio is NOT displayed for every group members") + for i in range(1, 3): + if not self.chats[i].play_pause_audio_message_button.is_element_disappeared(): + self.errors.append("Deleted audio is still displayed in chat for user driver '%s'" % i) + + self.errors.verify_no_errors() + @marks.testrail_id(702259) def test_group_chat_remove_member(self): self.chats[0].just_fyi("Admin: get options for device 2 in group chat and remove him") @@ -815,6 +862,9 @@ class TestChatKeycardMentionsMediumMultipleDevice(MultipleSharedDeviceTestCase): self.home_2 = self.device_2.recover_access(passphrase=self.sender['passphrase'], keycard=True, enable_notifications=True) + + [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() self.initial_amount_stt = self.wallet_2.get_asset_amount_by_name('STT') self.wallet_2.home_button.click() diff --git a/test/appium/tests/medium/test_deeplink_chat_share_profile.py b/test/appium/tests/medium/test_deeplink_chat_share_profile.py index 4425016a00..81ce6fc409 100644 --- a/test/appium/tests/medium/test_deeplink_chat_share_profile.py +++ b/test/appium/tests/medium/test_deeplink_chat_share_profile.py @@ -32,7 +32,7 @@ class TestDeeplinkChatProfileOneDevice(MultipleSharedDeviceTestCase): self.public_chat.get_back_to_home_view() self.home.just_fyi("Close the ENS banner") - self.home.ens_banner_close_button.click() + self.home.ens_banner_close_button.click_if_shown() @marks.testrail_id(702244) def test_deep_link_with_invalid_user_public_key_own_profile_key(self): diff --git a/test/appium/tests/medium/test_profile_m.py b/test/appium/tests/medium/test_profile_m.py index 6810eaae6d..d87b5794d7 100644 --- a/test/appium/tests/medium/test_profile_m.py +++ b/test/appium/tests/medium/test_profile_m.py @@ -41,7 +41,7 @@ class TestProfileGapsCommunityMediumMultipleDevicesMerged(MultipleSharedDeviceTe self.home_1.just_fyi("Close the ENS banner") [home.home_button.double_click() for home in (self.home_1, self.home_2)] - [home.ens_banner_close_button.click() for home in (self.home_1, self.home_2)] + [home.ens_banner_close_button.click_if_shown() for home in (self.home_1, self.home_2)] @marks.testrail_id(702281) def test_profile_show_profile_picture_and_online_indicator_settings(self):