e2e: small fixes
This commit is contained in:
parent
4b98f0e8de
commit
409c0a9e60
|
@ -940,6 +940,7 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
|
||||||
message_from_sender = "Message sender"
|
message_from_sender = "Message sender"
|
||||||
self.device_1.just_fyi("Sender start 1-1 chat, set emoji and check counter")
|
self.device_1.just_fyi("Sender start 1-1 chat, set emoji and check counter")
|
||||||
self.chat_1.send_message(message_from_sender)
|
self.chat_1.send_message(message_from_sender)
|
||||||
|
self.chat_1.chat_element_by_text(message_from_sender).wait_for_sent_state(120)
|
||||||
self.chat_1.set_reaction(message_from_sender)
|
self.chat_1.set_reaction(message_from_sender)
|
||||||
|
|
||||||
message_sender = self.chat_1.chat_element_by_text(message_from_sender)
|
message_sender = self.chat_1.chat_element_by_text(message_from_sender)
|
||||||
|
@ -998,8 +999,7 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
|
||||||
if replied_message.replied_message_text != url_message:
|
if replied_message.replied_message_text != url_message:
|
||||||
self.errors.append("Reply for '%s' not present in message received in public chat" % url_message)
|
self.errors.append("Reply for '%s' not present in message received in public chat" % url_message)
|
||||||
|
|
||||||
# The "open_in_status" feature is not implemented yet
|
self.home_2.just_fyi("Check 'Open in Status' option")
|
||||||
self.home_2.just_fyi(("Check 'Open in Status' option"))
|
|
||||||
url_message = 'http://status.im'
|
url_message = 'http://status.im'
|
||||||
self.chat_1.send_message(url_message)
|
self.chat_1.send_message(url_message)
|
||||||
self.chat_2.element_starts_with_text(url_message, 'button').click_inside_element_by_coordinate(0.2, 0.5)
|
self.chat_2.element_starts_with_text(url_message, 'button').click_inside_element_by_coordinate(0.2, 0.5)
|
||||||
|
@ -1140,6 +1140,7 @@ class TestOneToOneChatMultipleSharedDevicesNewUi(MultipleSharedDeviceTestCase):
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(702813)
|
@marks.testrail_id(702813)
|
||||||
|
@marks.xfail(reason="blocked by 15859")
|
||||||
def test_1_1_chat_push_emoji(self):
|
def test_1_1_chat_push_emoji(self):
|
||||||
message_no_pn, message = 'No PN', 'Text push notification'
|
message_no_pn, message = 'No PN', 'Text push notification'
|
||||||
|
|
||||||
|
|
|
@ -203,6 +203,7 @@ class TestGroupChatMultipleDeviceMergedNewUI(MultipleSharedDeviceTestCase):
|
||||||
self.chats[0].send_message(self.message_before_adding)
|
self.chats[0].send_message(self.message_before_adding)
|
||||||
|
|
||||||
@marks.testrail_id(702807)
|
@marks.testrail_id(702807)
|
||||||
|
@marks.xfail(reason="blocked by 15859")
|
||||||
def test_group_chat_join_send_text_messages_push(self):
|
def test_group_chat_join_send_text_messages_push(self):
|
||||||
message_to_admin = self.message_to_admin
|
message_to_admin = self.message_to_admin
|
||||||
[self.homes[i].click_system_back_button_until_element_is_shown() for i in range(3)]
|
[self.homes[i].click_system_back_button_until_element_is_shown() for i in range(3)]
|
||||||
|
|
|
@ -331,24 +331,18 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.drivers[0].fail("Not navigated to channel view after reopening app")
|
self.drivers[0].fail("Not navigated to channel view after reopening app")
|
||||||
|
|
||||||
@marks.testrail_id(702742)
|
@marks.testrail_id(702742)
|
||||||
@marks.xfail(reason='flaky test; sometimes can not be copied through appium')
|
|
||||||
def test_community_copy_and_paste_message_in_chat_input(self):
|
def test_community_copy_and_paste_message_in_chat_input(self):
|
||||||
message_texts = ['mmmeowesage_text', 'https://status.im']
|
message_texts = ['mmmeowesage_text', 'https://status.im']
|
||||||
|
if not self.channel.chat_message_input.is_element_displayed():
|
||||||
message_input = self.channel.chat_message_input
|
|
||||||
if not message_input.is_element_displayed():
|
|
||||||
self.home.click_system_back_button_until_element_is_shown()
|
self.home.click_system_back_button_until_element_is_shown()
|
||||||
self.home.get_to_community_channel_from_home(self.community_name)
|
self.home.get_to_community_channel_from_home(self.community_name)
|
||||||
|
|
||||||
for message in message_texts:
|
for message in message_texts:
|
||||||
message_input.send_keys(message)
|
self.channel.send_message(message)
|
||||||
self.channel.send_message_button.click()
|
|
||||||
|
|
||||||
self.channel.copy_message_text(message)
|
self.channel.copy_message_text(message)
|
||||||
message_input.paste_text_from_clipboard()
|
actual_copied_text = self.channel.driver.get_clipboard_text()
|
||||||
if message_input.text != message:
|
if actual_copied_text != message:
|
||||||
self.errors.append('Message %s text was not copied in community channel' % message)
|
self.errors.append('Message %s text was not copied in community channel, text in clipboard %s' % actual_copied_text)
|
||||||
message_input.clear()
|
|
||||||
|
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
|
@ -364,9 +358,10 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
for key in ['admin_open', 'member_open', 'admin_closed', 'member_closed']:
|
for key in ['admin_open', 'member_open', 'admin_closed', 'member_closed']:
|
||||||
if not self.home.element_by_text(waku_user.communities[key]).is_element_displayed(30):
|
if not self.home.element_by_text(waku_user.communities[key]).is_element_displayed(30):
|
||||||
self.errors.append("%s was not restored from waku-backup!!" % key)
|
self.errors.append("%s was not restored from waku-backup!!" % key)
|
||||||
self.home.opened_communities_tab.click()
|
# TODO: there is a bug when pending community sometimes restored as joined; needs investigation
|
||||||
if not self.home.element_by_text(waku_user.communities['member_pending']).is_element_displayed(30):
|
# self.home.opened_communities_tab.click()
|
||||||
self.errors.append("Pending community %s was not restored from waku-backup!" % waku_user.communities['member_pending'])
|
# if not self.home.element_by_text(waku_user.communities['member_pending']).is_element_displayed(30):
|
||||||
|
# self.errors.append("Pending community %s was not restored from waku-backup!" % waku_user.communities['member_pending'])
|
||||||
|
|
||||||
self.home.just_fyi("Check contacts/blocked users")
|
self.home.just_fyi("Check contacts/blocked users")
|
||||||
self.home.chats_tab.click()
|
self.home.chats_tab.click()
|
||||||
|
@ -499,7 +494,6 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(702840)
|
@marks.testrail_id(702840)
|
||||||
@marks.xfail(reason='flaky test; sometimes can not be copied through appium')
|
|
||||||
def test_community_emoji_send_copy_paste_reply(self):
|
def test_community_emoji_send_copy_paste_reply(self):
|
||||||
emoji_name = random.choice(list(emoji.EMOJI_UNICODE))
|
emoji_name = random.choice(list(emoji.EMOJI_UNICODE))
|
||||||
emoji_unicode = emoji.EMOJI_UNICODE[emoji_name]
|
emoji_unicode = emoji.EMOJI_UNICODE[emoji_name]
|
||||||
|
@ -511,9 +505,9 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
|
|
||||||
self.channel_1.just_fyi("Can copy and paste emojis")
|
self.channel_1.just_fyi("Can copy and paste emojis")
|
||||||
self.channel_1.copy_message_text(emoji_unicode)
|
self.channel_1.copy_message_text(emoji_unicode)
|
||||||
self.channel_1.chat_message_input.paste_text_from_clipboard()
|
actual_copied_text = self.channel_1.driver.get_clipboard_text()
|
||||||
if self.channel_1.chat_message_input.text != emoji_unicode:
|
if actual_copied_text != emoji_unicode:
|
||||||
self.errors.append('Emoji message was not copied')
|
self.errors.append('Emoji message was not copied, text in clipboard is %s' % actual_copied_text)
|
||||||
|
|
||||||
self.channel_1.just_fyi("Can reply to emojis")
|
self.channel_1.just_fyi("Can reply to emojis")
|
||||||
self.channel_2.quote_message(emoji_unicode)
|
self.channel_2.quote_message(emoji_unicode)
|
||||||
|
@ -696,6 +690,7 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase):
|
||||||
self.errors.verify_no_errors()
|
self.errors.verify_no_errors()
|
||||||
|
|
||||||
@marks.testrail_id(702786)
|
@marks.testrail_id(702786)
|
||||||
|
@marks.xfail(reason="blocked by 15859")
|
||||||
def test_community_mentions_push_notification(self):
|
def test_community_mentions_push_notification(self):
|
||||||
self.home_1.click_system_back_button_until_element_is_shown()
|
self.home_1.click_system_back_button_until_element_is_shown()
|
||||||
if not self.channel_2.chat_message_input.is_element_displayed():
|
if not self.channel_2.chat_message_input.is_element_displayed():
|
||||||
|
|
|
@ -23,7 +23,6 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC
|
||||||
[home.chats_tab.click() for home in self.homes]
|
[home.chats_tab.click() for home in self.homes]
|
||||||
|
|
||||||
@marks.testrail_id(702850)
|
@marks.testrail_id(702850)
|
||||||
@marks.xfail(reason="Blocked by 15500")
|
|
||||||
def test_activity_center_contact_request_decline(self):
|
def test_activity_center_contact_request_decline(self):
|
||||||
self.device_1.put_app_to_background()
|
self.device_1.put_app_to_background()
|
||||||
self.device_2.just_fyi('Device2 sends a contact request to Device1 via Paste button and check user details')
|
self.device_2.just_fyi('Device2 sends a contact request to Device1 via Paste button and check user details')
|
||||||
|
@ -32,8 +31,9 @@ class TestActivityCenterContactRequestMultipleDevicePR(MultipleSharedDeviceTestC
|
||||||
self.home_2.add_a_contact_chat_bottom_sheet_button.click()
|
self.home_2.add_a_contact_chat_bottom_sheet_button.click()
|
||||||
self.home_2.element_by_translation_id("paste").click()
|
self.home_2.element_by_translation_id("paste").click()
|
||||||
self.home_2.element_by_translation_id("user-found").wait_for_visibility_of_element(10)
|
self.home_2.element_by_translation_id("user-found").wait_for_visibility_of_element(10)
|
||||||
if not self.home_2.element_by_text(self.username_1).is_element_displayed():
|
# TODO: Blocked by 15500
|
||||||
self.errors.append("Username is not shown on 'Add contact' page after entering valid public key")
|
# if not self.home_2.element_by_text(self.username_1).is_element_displayed():
|
||||||
|
# self.errors.append("Username is not shown on 'Add contact' page after entering valid public key")
|
||||||
chat = self.home_2.get_chat_view()
|
chat = self.home_2.get_chat_view()
|
||||||
|
|
||||||
chat.view_profile_new_contact_button.click_until_presence_of_element(chat.profile_block_contact_button)
|
chat.view_profile_new_contact_button.click_until_presence_of_element(chat.profile_block_contact_button)
|
||||||
|
|
Loading…
Reference in New Issue