e2e: small adjustments (#16439)
This commit is contained in:
parent
a7ddda40c4
commit
3058ebe018
|
@ -1071,7 +1071,7 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
|
||||||
if not self.chat_2.chat_message_input.is_element_displayed():
|
if not self.chat_2.chat_message_input.is_element_displayed():
|
||||||
self.home_2.get_chat(self.username_1).click()
|
self.home_2.get_chat(self.username_1).click()
|
||||||
if self.chat_2.chat_element_by_text(message).member_photo.is_element_differs_from_template("member3.png",
|
if self.chat_2.chat_element_by_text(message).member_photo.is_element_differs_from_template("member3.png",
|
||||||
diff=5):
|
diff=6):
|
||||||
self.errors.append("Image of user in 1-1 chat is too different from template!")
|
self.errors.append("Image of user in 1-1 chat is too different from template!")
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
@ -1240,14 +1240,16 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
|
||||||
home.click_system_back_button_until_element_is_shown()
|
home.click_system_back_button_until_element_is_shown()
|
||||||
home.chats_tab.click()
|
home.chats_tab.click()
|
||||||
home.get_chat(self.username_2 if i == 0 else self.username_1).click()
|
home.get_chat(self.username_2 if i == 0 else self.username_1).click()
|
||||||
|
|
||||||
|
self.home_1.just_fyi('Device1 goes back online and checks that 1-1 chat will be fetched')
|
||||||
|
if not self.chat_1.chat_element_by_text(message_1).is_element_displayed(120):
|
||||||
|
self.errors.append("Message was not delivered after resending from offline")
|
||||||
|
|
||||||
|
self.home_2.just_fyi('Device1 goes back online and checks that 1-1 chat will be fetched')
|
||||||
try:
|
try:
|
||||||
chat_element.wait_for_status_to_be(expected_status='Delivered', timeout=120)
|
chat_element.wait_for_status_to_be(expected_status='Delivered', timeout=120)
|
||||||
except TimeoutException as e:
|
except TimeoutException as e:
|
||||||
self.errors.append('%s after back up online!' % e.msg)
|
self.errors.append('%s after back up online!' % e.msg)
|
||||||
|
|
||||||
self.home_1.just_fyi('Device1 goes back online and checks that 1-1 chat will be fetched')
|
|
||||||
if not self.chat_1.chat_element_by_text(message_1).is_element_displayed(60):
|
|
||||||
self.errors.append("Message was not delivered after resending from offline")
|
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(702784)
|
@marks.testrail_id(702784)
|
||||||
|
|
|
@ -773,10 +773,11 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.chat_1.click_system_back_button_until_element_is_shown()
|
self.chat_1.click_system_back_button_until_element_is_shown()
|
||||||
|
|
||||||
self.home_2.just_fyi("Check that can send message in community after unblock")
|
self.home_2.just_fyi("Check that can send message in community after unblock")
|
||||||
self.home_1.jump_to_card_by_text('# %s' % self.channel_name)
|
|
||||||
self.chat_2.send_message(message_unblocked)
|
self.chat_2.send_message(message_unblocked)
|
||||||
|
self.home_1.jump_to_card_by_text('# %s' % self.channel_name)
|
||||||
if not self.chat_1.chat_element_by_text(message_unblocked).is_element_displayed(120):
|
if not self.chat_1.chat_element_by_text(message_unblocked).is_element_displayed(120):
|
||||||
self.errors.append("Message was not received in public chat after user unblock!")
|
self.errors.append("%s was not received in public chat after user unblock!" % message_unblocked)
|
||||||
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
self.home_1.just_fyi("Add blocked user to contacts again after removing(removed automatically when blocked)")
|
self.home_1.just_fyi("Add blocked user to contacts again after removing(removed automatically when blocked)")
|
||||||
chat_element = self.channel_1.chat_element_by_text(message_unblocked)
|
chat_element = self.channel_1.chat_element_by_text(message_unblocked)
|
||||||
|
|
|
@ -317,7 +317,7 @@ class TestActivityMultipleDevicePR(MultipleSharedDeviceTestCase):
|
||||||
self.home_2.just_fyi("Request access to community")
|
self.home_2.just_fyi("Request access to community")
|
||||||
self.home_2.jump_to_messages_home()
|
self.home_2.jump_to_messages_home()
|
||||||
self.chat_2 = self.home_2.get_chat(self.username_1).click()
|
self.chat_2 = self.home_2.get_chat(self.username_1).click()
|
||||||
self.chat_2.element_by_text_part('View').click()
|
self.chat_2.element_by_text_part('View').wait_and_click(sec=60)
|
||||||
self.community_2.join_community()
|
self.community_2.join_community()
|
||||||
[home.jump_to_communities_home() for home in (self.home_1, self.home_2)]
|
[home.jump_to_communities_home() for home in (self.home_1, self.home_2)]
|
||||||
|
|
||||||
|
|
|
@ -393,8 +393,10 @@ class CommunityView(HomeView):
|
||||||
self.community_description_text = Text(self.driver, accessibility_id="community-description-text")
|
self.community_description_text = Text(self.driver, accessibility_id="community-description-text")
|
||||||
|
|
||||||
def join_community(self):
|
def join_community(self):
|
||||||
|
self.driver.info("Joining community")
|
||||||
self.join_button.click()
|
self.join_button.click()
|
||||||
self.checkbox_button.scroll_and_click()
|
self.checkbox_button.scroll_to_element()
|
||||||
|
self.checkbox_button.enable()
|
||||||
self.join_community_button.scroll_and_click()
|
self.join_community_button.scroll_and_click()
|
||||||
|
|
||||||
def get_channel(self, channel_name: str):
|
def get_channel(self, channel_name: str):
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.4 KiB |
Loading…
Reference in New Issue