Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: added back status link opening #17930

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions test/appium/tests/critical/chats/test_1_1_public_chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
11 changes: 5 additions & 6 deletions test/appium/tests/critical/chats/test_public_chat_browsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/appium/views/dbs/waku_backup/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'