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: temp fix for jump to #19364

Merged
merged 1 commit into from
Mar 22, 2024
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
2 changes: 1 addition & 1 deletion test/appium/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def pytest_configure(config):
test_suite_data.apk_name = ([i for i in [i for i in config.getoption('apk').split('/')
if '.apk' in i]])[0]
global run_name
if is_master(config):
if is_master(config) and config.getoption('testrail_report'):
run_name = get_run_name(config, new_one=True)
testrail_report.add_run(run_name)
else:
Expand Down
7 changes: 5 additions & 2 deletions test/appium/tests/critical/chats/test_1_1_public_chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,15 @@ def test_1_1_chat_pin_messages(self):

@marks.testrail_id(702745)
def test_1_1_chat_non_latin_messages_stack_update_profile_photo(self):
self.home_1.jump_to_messages_home()
self.home_1.navigate_back_to_home_view()
self.home_1.profile_button.click()
self.profile_1.edit_profile_picture(image_index=2)

self.chat_2.just_fyi("Send messages with non-latin symbols")
self.home_1.jump_to_card_by_text(self.username_2)
# self.home_1.jump_to_card_by_text(self.username_2)
self.home_1.click_system_back_button()
self.home_1.chats_tab.click()
self.home_1.get_chat(self.username_2).click()
self.chat_1.send_message("just a text") # Sending a message here so the next ones will be in a separate line

self.home_2.navigate_back_to_home_view()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,13 +656,13 @@ def test_community_contact_block_unblock_offline(self):
self.channel_1.block_contact()

self.chat_1.just_fyi('Check that messages from blocked user are hidden in public chat and close app')
app_package = self.device_1.driver.current_package
if not self.chat_1.chat_element_by_text(message_to_disappear).is_element_disappeared(30):
self.errors.append("Messages from blocked user is not cleared in public chat ")
self.chat_1.navigate_back_to_home_view()
self.home_1.chats_tab.click()
if not self.home_1.element_by_translation_id("no-messages").is_element_displayed():
self.errors.append("1-1 chat from blocked user is not removed and messages home is not empty!")
# ToDo: enable when https://github.com/status-im/status-mobile/issues/19334 is fixed
# self.home_1.chats_tab.click()
# if not self.home_1.element_by_translation_id("no-messages").is_element_displayed():
# self.errors.append("1-1 chat from blocked user is not removed and messages home is not empty!")
self.chat_1.driver.set_network_connection(ConnectionType.AIRPLANE_MODE)

self.home_2.just_fyi('Send message to public chat while device 1 is offline')
Expand Down