Skip to content

Commit

Permalink
e2e: fixes 10.01
Browse files Browse the repository at this point in the history
  • Loading branch information
yevh-berdnyk committed Jan 10, 2024
1 parent 5a707c0 commit 433be1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/appium/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _upload_and_check_response_with_retries(apk_file_path, retries=3):
try:
_upload_and_check_response(apk_file_path)
break
except (ConnectionError, RemoteDisconnected):
except (ConnectionError, RemoteDisconnected, c_er):
time.sleep(10)


Expand Down
1 change: 1 addition & 0 deletions test/appium/tests/critical/chats/test_1_1_public_chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ def test_1_1_chat_delete_via_long_press_relogin(self):
self.home_2.navigate_back_to_home_view()
self.home_2.chats_tab.click()
self.home_2.get_chat(self.username_1).click()
self.chat_2.chat_message_input.wait_for_visibility_of_element()
self.home_2.just_fyi("Getting chat history")
chat_history = list()
for element in self.chat_2.chat_element_by_text(text='').message_text_content.find_elements():
Expand Down
7 changes: 5 additions & 2 deletions test/appium/tests/critical/chats/test_public_chat_browsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest
from _pytest.outcomes import Failed
from appium.webdriver.connectiontype import ConnectionType
from selenium.common.exceptions import NoSuchElementException, TimeoutException
from selenium.common.exceptions import NoSuchElementException, TimeoutException, StaleElementReferenceException

from tests import marks, run_in_parallel, pytest_config_global, transl
from tests.base_test_case import create_shared_drivers, MultipleSharedDeviceTestCase
Expand Down Expand Up @@ -108,7 +108,10 @@ def test_community_undo_delete_message(self):
message_to_delete = "message to delete and undo"
self.channel.send_message(message_to_delete)
self.channel.delete_message_in_chat(message_to_delete)
self.channel.element_by_text("Undo").click()
try:
self.channel.element_by_text("Undo").click()
except StaleElementReferenceException:
pytest.fail("Can't press Undo button, not enough time")
try:
self.channel.chat_element_by_text(message_to_delete).wait_for_visibility_of_element()
except TimeoutException:
Expand Down

0 comments on commit 433be1d

Please sign in to comment.