e2e: fixes for backup users and unread indicator tests

This commit is contained in:
Yevheniia Berdnyk 2023-07-03 12:20:30 +03:00
parent e64ff76e0b
commit ca2ed9d37e
No known key found for this signature in database
GPG Key ID: 0642C73C66214825
2 changed files with 9 additions and 10 deletions

View File

@ -388,9 +388,9 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
else: else:
chat = self.home.get_chat_view() chat = self.home.get_chat_view()
chat.profile_send_message_button.click() chat.profile_send_message_button.click()
shown_name_text = chat.user_name_text_new_UI.text for name in waku_user.contacts:
if shown_name_text in waku_user.contacts: if chat.element_starts_with_text(name).is_element_displayed(sec=20):
waku_user.contacts.remove(shown_name_text) waku_user.contacts.remove(name)
continue continue
if waku_user.contacts: if waku_user.contacts:
self.errors.append( self.errors.append(
@ -814,7 +814,6 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
def test_community_mark_all_messages_as_read(self): def test_community_mark_all_messages_as_read(self):
self.channel_1.click_system_back_button_until_element_is_shown() self.channel_1.click_system_back_button_until_element_is_shown()
self.home_1.communities_tab.click() self.home_1.communities_tab.click()
if not self.channel_2.chat_message_input.is_element_displayed():
self.channel_2.click_system_back_button_until_element_is_shown() self.channel_2.click_system_back_button_until_element_is_shown()
self.home_2.communities_tab.click() self.home_2.communities_tab.click()
self.home_2.get_chat(self.community_name, community=True).click() self.home_2.get_chat(self.community_name, community=True).click()

View File

@ -7,5 +7,5 @@ communities = {
'member_closed': 'test_comm_enc', 'member_closed': 'test_comm_enc',
'member_pending': 'RC1 testing community' 'member_pending': 'RC1 testing community'
} }
contacts = ['Test_contact', 'my-custom-nickname'] contacts = ['Test_contact', 'MyCustomNickname']
blocked_user = 'Clear Flat Milkweedbug' blocked_user = 'Clear Flat Milkweedbug'