mirror of
https://github.com/status-im/status-react.git
synced 2025-01-24 09:49:51 +00:00
e2e: fixes for backup users and unread indicator tests
This commit is contained in:
parent
e64ff76e0b
commit
ca2ed9d37e
@ -388,10 +388,10 @@ 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(
|
||||||
"Contact(s) was (were) not restored from backup: %s!" % ", ".join(waku_user.contacts))
|
"Contact(s) was (were) not restored from backup: %s!" % ", ".join(waku_user.contacts))
|
||||||
@ -814,11 +814,10 @@ 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()
|
self.community_2.get_channel(self.channel_name).click()
|
||||||
self.community_2.get_channel(self.channel_name).click()
|
|
||||||
self.channel_2.send_message(self.text_message)
|
self.channel_2.send_message(self.text_message)
|
||||||
community_1_element = self.community_1.get_chat(self.community_name)
|
community_1_element = self.community_1.get_chat(self.community_name)
|
||||||
if not community_1_element.new_messages_public_chat.is_element_displayed(90):
|
if not community_1_element.new_messages_public_chat.is_element_displayed(90):
|
||||||
|
@ -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'
|
Loading…
x
Reference in New Issue
Block a user