e2e: fixes 10.01
This commit is contained in:
parent
5a707c0dca
commit
433be1daef
|
@ -196,7 +196,7 @@ def _upload_and_check_response_with_retries(apk_file_path, retries=3):
|
||||||
try:
|
try:
|
||||||
_upload_and_check_response(apk_file_path)
|
_upload_and_check_response(apk_file_path)
|
||||||
break
|
break
|
||||||
except (ConnectionError, RemoteDisconnected):
|
except (ConnectionError, RemoteDisconnected, c_er):
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -655,6 +655,7 @@ class TestOneToOneChatMultipleSharedDevicesNewUiTwo(MultipleSharedDeviceTestCase
|
||||||
self.home_2.navigate_back_to_home_view()
|
self.home_2.navigate_back_to_home_view()
|
||||||
self.home_2.chats_tab.click()
|
self.home_2.chats_tab.click()
|
||||||
self.home_2.get_chat(self.username_1).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")
|
self.home_2.just_fyi("Getting chat history")
|
||||||
chat_history = list()
|
chat_history = list()
|
||||||
for element in self.chat_2.chat_element_by_text(text='').message_text_content.find_elements():
|
for element in self.chat_2.chat_element_by_text(text='').message_text_content.find_elements():
|
||||||
|
|
|
@ -5,7 +5,7 @@ import emoji
|
||||||
import pytest
|
import pytest
|
||||||
from _pytest.outcomes import Failed
|
from _pytest.outcomes import Failed
|
||||||
from appium.webdriver.connectiontype import ConnectionType
|
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 import marks, run_in_parallel, pytest_config_global, transl
|
||||||
from tests.base_test_case import create_shared_drivers, MultipleSharedDeviceTestCase
|
from tests.base_test_case import create_shared_drivers, MultipleSharedDeviceTestCase
|
||||||
|
@ -108,7 +108,10 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
message_to_delete = "message to delete and undo"
|
message_to_delete = "message to delete and undo"
|
||||||
self.channel.send_message(message_to_delete)
|
self.channel.send_message(message_to_delete)
|
||||||
self.channel.delete_message_in_chat(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:
|
try:
|
||||||
self.channel.chat_element_by_text(message_to_delete).wait_for_visibility_of_element()
|
self.channel.chat_element_by_text(message_to_delete).wait_for_visibility_of_element()
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
|
|
Loading…
Reference in New Issue