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 d963bcb673b..e163bba8e52 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,17 @@ 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") # ToDo: temp + self.home_2.just_fyi("Check 'Open in Status' option") + url_to_open = 'http://status.app' + 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('Make the jump to web3').is_element_displayed(60): + self.errors.append('URL was not opened from 1-1 chat') + else: + self.errors.append("Message with URL was not received") self.errors.verify_no_errors() 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 960c6e0f3a3..222686a5934 100644 --- a/test/appium/tests/critical/chats/test_public_chat_browsing.py +++ b/test/appium/tests/critical/chats/test_public_chat_browsing.py @@ -33,6 +33,8 @@ def prepare_devices(self): self.channel = self.community_view.get_channel(self.channel_name).click() @marks.testrail_id(703503) + @marks.xfail(reason="Curated communities not loading, https://github.com/status-im/status-mobile/issues/17852", + run=False) def test_community_discovery(self): self.home.navigate_back_to_home_view() self.home.communities_tab.click() @@ -190,8 +192,6 @@ def test_restore_multiaccount_with_waku_backup_remove_switch(self): self.home.just_fyi("Restore user with predefined communities and contacts") self.sign_in.recover_access(passphrase=waku_user.seed, second_user=True) - self.home.just_fyi("Restore user with predefined communities and contacts") - self.home.just_fyi("Check contacts/blocked users") self.home.chats_tab.click() self.home.contacts_tab.click() @@ -200,10 +200,9 @@ def test_restore_multiaccount_with_waku_backup_remove_switch(self): self.errors.append( "Incorrect contacts number restored: %s instead of %s" % (contacts_number, len(waku_user.contacts))) else: - for i in range(contacts_number): - key = waku_user.contacts[i] - if not self.home.element_by_text(key).is_element_displayed(30): - self.errors.append('%s was not restored as a contact from waku backup!' % key) + for contact in waku_user.contacts: + if not self.home.element_by_text(contact).is_element_displayed(30): + self.errors.append('%s was not restored as a contact from waku backup!' % contact) # Disabled for simple check as sometimes from waku-backup users restored with 3-random names # self.home.click_system_back_button_until_element_is_shown() # contact_row = self.home.contact_details_row(index=i + 1) diff --git a/test/appium/views/dbs/waku_backup/user.py b/test/appium/views/dbs/waku_backup/user.py index a502f943e00..7ecdf916773 100644 --- a/test/appium/views/dbs/waku_backup/user.py +++ b/test/appium/views/dbs/waku_backup/user.py @@ -10,5 +10,5 @@ #contacts = ['Test_contact', 'MyCustomNickname'] # enable back when https://github.com/status-im/status-mobile/issues/15500 is fixed -contacts = ['zQ3...rLSpUs', 'zQ3...mxAZUU'] +contacts = ['zQ3...LSpUs', 'zQ3...xAZUU'] blocked_user = 'Clear Flat Milkweedbug'