Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix drawer message according to desings #19056

Merged
merged 7 commits into from
Mar 19, 2024
Merged

Conversation

clauxx
Copy link
Member

@clauxx clauxx commented Feb 29, 2024

fixes #19053
fixes #19164

Summary

Fix issues with the message component when shown above the bottom sheet after long-press, based on the design feedback

  • fixed bottom-sheet not showing the selected-item
  • fix spacings
  • remove identicon
  • remove emojis from message

Testing notes

Platforms

  • Android
  • iOS

Areas that maybe impacted

Functional
  • 1-1 chats
  • public chats
  • group chats

Steps to test

  • Open Status
  • Open chat
  • Long press on a message

Before and after screenshots comparison

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Feb 29, 2024

Jenkins Builds

Click to see older builds (53)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 1d850cc #1 2024-02-29 12:52:11 ~6 min tests 📄log
✔️ 1d850cc #1 2024-02-29 12:52:20 ~7 min android-e2e 🤖apk 📲
✔️ 1d850cc #1 2024-02-29 12:53:51 ~8 min android 🤖apk 📲
✔️ 1d850cc #1 2024-02-29 12:56:35 ~11 min ios 📱ipa 📲
✔️ b989230 #2 2024-03-01 08:34:56 ~6 min tests 📄log
✔️ b989230 #2 2024-03-01 08:35:54 ~7 min android-e2e 🤖apk 📲
✔️ b989230 #2 2024-03-01 08:36:13 ~7 min android 🤖apk 📲
✔️ b989230 #2 2024-03-01 08:39:04 ~10 min ios 📱ipa 📲
✔️ 892278d #3 2024-03-01 08:56:13 ~6 min android-e2e 🤖apk 📲
✔️ 892278d #3 2024-03-01 08:56:39 ~7 min android 🤖apk 📲
✔️ 892278d #3 2024-03-01 09:01:18 ~11 min ios 📱ipa 📲
✔️ 892278d #4 2024-03-01 09:22:49 ~5 min tests 📄log
✔️ 994b9bf #4 2024-03-01 09:43:31 ~6 min android-e2e 🤖apk 📲
✔️ 994b9bf #5 2024-03-01 09:43:45 ~6 min tests 📄log
✔️ 994b9bf #4 2024-03-01 09:44:57 ~8 min android 🤖apk 📲
✔️ 994b9bf #4 2024-03-01 09:47:18 ~10 min ios 📱ipa 📲
✔️ 9d46725 #5 2024-03-01 13:10:37 ~6 min android 🤖apk 📲
✔️ 9d46725 #6 2024-03-01 13:10:39 ~6 min tests 📄log
✔️ 9d46725 #5 2024-03-01 13:11:55 ~8 min android-e2e 🤖apk 📲
✔️ 9d46725 #5 2024-03-01 13:16:36 ~12 min ios 📱ipa 📲
9ea2dca #7 2024-03-03 12:24:16 ~5 min tests 📄log
✔️ 9ea2dca #6 2024-03-03 12:25:50 ~7 min android-e2e 🤖apk 📲
✔️ 9ea2dca #6 2024-03-03 12:27:35 ~8 min android 🤖apk 📲
✔️ 9ea2dca #6 2024-03-03 12:33:36 ~14 min ios 📱ipa 📲
✔️ 9ea2dca #8 2024-03-04 08:35:19 ~3 min tests 📄log
9b181c9 #10 2024-03-11 09:48:27 ~4 min tests 📄log
✔️ 9b181c9 #8 2024-03-11 09:51:38 ~7 min android-e2e 🤖apk 📲
✔️ 9b181c9 #8 2024-03-11 09:51:48 ~7 min android 🤖apk 📲
✔️ 9b181c9 #8 2024-03-11 09:53:57 ~9 min ios 📱ipa 📲
✔️ 9b181c9 #11 2024-03-11 12:13:04 ~3 min tests 📄log
✔️ 3889032 #12 2024-03-11 12:30:22 ~5 min tests 📄log
✔️ 3889032 #9 2024-03-11 12:31:55 ~7 min android-e2e 🤖apk 📲
✔️ 3889032 #9 2024-03-11 12:32:11 ~7 min android 🤖apk 📲
✔️ 3889032 #9 2024-03-11 12:43:14 ~18 min ios 📱ipa 📲
✔️ b9392e3 #14 2024-03-12 10:25:36 ~6 min tests 📄log
✔️ b9392e3 #11 2024-03-12 10:27:09 ~7 min android-e2e 🤖apk 📲
✔️ b9392e3 #11 2024-03-12 10:27:28 ~8 min android 🤖apk 📲
✔️ b9392e3 #11 2024-03-12 10:30:57 ~11 min ios 📱ipa 📲
✔️ 73b4294 #15 2024-03-13 15:23:07 ~5 min tests 📄log
✔️ 73b4294 #12 2024-03-13 15:24:14 ~7 min android-e2e 🤖apk 📲
✔️ 73b4294 #12 2024-03-13 15:24:18 ~7 min android 🤖apk 📲
✔️ 73b4294 #12 2024-03-13 15:24:43 ~7 min ios 📱ipa 📲
✔️ 832786a #17 2024-03-19 09:20:53 ~5 min tests 📄log
✔️ 832786a #14 2024-03-19 09:21:20 ~6 min android-e2e 🤖apk 📲
✔️ 832786a #16 2024-03-19 09:23:58 ~7 min android 🤖apk 📲
✔️ 832786a #17 2024-03-19 09:35:21 ~9 min ios 📱ipa 📲
✖️ 832786a #15 2024-03-19 09:47:57 ~6.2 sec android-e2e 🤖apk 📲
✖️ 832786a #16 2024-03-19 09:49:26 ~6.7 sec android-e2e 🤖apk 📲
✖️ 832786a #17 2024-03-19 10:58:30 ~6.3 sec android-e2e 🤖apk 📲
✔️ fe73b8b #17 2024-03-19 13:42:57 ~6 min android 🤖apk 📲
✔️ fe73b8b #18 2024-03-19 13:44:40 ~8 min android-e2e 🤖apk 📲
✔️ fe73b8b #18 2024-03-19 13:45:36 ~9 min ios 📱ipa 📲
✔️ fe73b8b #18 2024-03-19 13:46:17 ~10 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b71c59e #19 2024-03-19 14:00:16 ~6 min android-e2e 🤖apk 📲
✔️ b71c59e #18 2024-03-19 14:00:53 ~7 min android 🤖apk 📲
✔️ b71c59e #19 2024-03-19 14:02:18 ~8 min ios 📱ipa 📲
✔️ 7adaf96 #20 2024-03-19 14:13:51 ~6 min tests 📄log
✔️ 7adaf96 #19 2024-03-19 14:14:47 ~7 min android 🤖apk 📲
✔️ 7adaf96 #20 2024-03-19 14:15:11 ~7 min android-e2e 🤖apk 📲
✔️ 7adaf96 #20 2024-03-19 14:17:08 ~9 min ios 📱ipa 📲

Copy link
Member

@flexsurfer flexsurfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Member

@flexsurfer flexsurfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

src/status_im/subs/profile.cljs Show resolved Hide resolved
@status-im-auto
Copy link
Member

79% of end-end tests have passed

Total executed tests: 48
Failed tests: 9
Expected to fail tests: 1
Passed tests: 38
IDs of failed tests: 702733,703194,702859,703086,702894,704615,703391,702844,702843 
IDs of expected to fail tests: 703503 

Failed tests (9)

Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194

    Device 2: Trying to access images (image container) inside message with text 'gallery'
    Device 2: Find `ImageContainer` by `xpath`: `//*[starts-with(@text,'gallery')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//*[@content-desc="image-container"]`

    critical/chats/test_public_chat_browsing.py:399: in test_community_several_images_send_reply
        if chat_element.image_container_in_message.is_element_differs_from_template(file_name, 5):
    ../views/base_element.py:279: in is_element_differs_from_template
        difference = ImageChops.difference(self.image, self.template)
    ../views/base_element.py:252: in image
        return Image.open(BytesIO(base64.b64decode(self.find_element().screenshot_as_base64)))
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 2: ImageContainer by xpath: `//*[starts-with(@text,'gallery')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//*[@content-desc="image-container"]` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
    



    Device sessions

    2. test_community_one_image_send_reply, id: 702859

    Device 2: Find EmojisNumber by xpath: //*[starts-with(@text,'reply to image')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-1']/android.widget.TextView[2]
    Device 2: Element EmojisNumber text is equal to 1

    critical/chats/test_public_chat_browsing.py:501: in test_community_one_image_send_reply
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Reply message was not received by the sender
    E    Image message reaction is not shown for the sender
    



    Device sessions

    3. test_community_mark_all_messages_as_read, id: 703086

    Device 1: Tap on found: Button
    Device 1: Click until Text by accessibility id: community-description-text will be presented

    critical/chats/test_public_chat_browsing.py:767: in test_community_mark_all_messages_as_read
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     New messages counter is not shown in home > Community element
    E    New messages counter is not shown in community channel element
    



    Device sessions

    4. test_community_contact_block_unblock_offline, id: 702894

    Device 1: Click until ChatMessageInput by accessibility id: chat-message-input will be presented
    Device 1: Looking for a message by text: Hurray! unblocked

    critical/chats/test_public_chat_browsing.py:706: in test_community_contact_block_unblock_offline
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Hurray! unblocked was not received in public chat after user unblock!
    



    Device sessions

    5. test_community_edit_delete_message_when_offline, id: 704615

    # STEP: Receiver is checking if initial messages were delivered
    Device 1: Looking for a message by text: message to edit

    critical/chats/test_public_chat_browsing.py:782: in test_community_edit_delete_message_when_offline
        self.channel_1.driver.fail("Message '%s' was not received")
    base_test_case.py:179: in fail
        pytest.fail('Device %s: %s' % (self.number, text))
     Device 1: Message '%s' was not received
    



    Device sessions

    6. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Device 2: Tap on found: SendMessageButton
    Device 1: Getting preview message for link: #11707

    critical/chats/test_public_chat_browsing.py:585: in test_community_links_with_previews_github_youtube_twitter_gif_send_enable
        message.wait_for_element(60)
    ../views/base_element.py:129: in wait_for_element
        raise TimeoutException(
     Device `1`: `PreviewMessage` by` xpath`: `//*[starts-with(@text,'https://github.com/status-im/status-mobile/pull/11707')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_element
    



    Device sessions

    7. test_community_message_edit, id: 702843

    Device 2: Looking for a message by text: Message AFTER edit 2 (Edited)
    Device 2: Find ChatElementByText by xpath: //*[starts-with(@text,'Message AFTER edit 2 (Edited)')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']

    critical/chats/test_public_chat_browsing.py:353: in test_community_message_edit
        self.channel_2.set_reaction(message_text_after_edit)
    ../views/chat_view.py:1084: in set_reaction
        self.chat_element_by_text(message).long_press_until_element_is_shown(element)
    ../views/base_element.py:326: in long_press_until_element_is_shown
        element = self.find_element()
    ../views/chat_view.py:134: in find_element
        self.wait_for_visibility_of_element(20)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatElementByText by xpath:`//*[starts-with(@text,'Message AFTER edit 2 (Edited)')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_text_message_delete_push_disappear, id: 702733

    Device 2: Find Button by accessibility id: jump-to

    critical/chats/test_1_1_public_chats.py:459: in test_1_1_chat_text_message_delete_push_disappear
        self.chat_2.jump_to_card_by_text(self.username_1)
    ../views/base_view.py:659: in jump_to_card_by_text
        self.click_on_floating_jump_to()
    ../views/base_view.py:648: in click_on_floating_jump_to
        self.jump_to_button.click()
    ../views/base_element.py:90: in click
        element = self.find_element()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 2: Button by accessibility id: `jump-to` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
    



    Device sessions

    2. test_1_1_chat_send_image_save_and_share, id: 703391

    Device 2: Tap on found: Button
    Device 2: Find BaseElement by accessibility id: toast-content

    critical/chats/test_1_1_public_chats.py:436: in test_1_1_chat_send_image_save_and_share
        toast_element_text = toast_element.text
    ../views/base_element.py:237: in text
        return self.find_element().text
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 2: BaseElement by accessibility id: `toast-content` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
    



    Device sessions

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Curated communities not loading, https://github.com//issues/17852]]

    Passed tests (38)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    2. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    3. test_community_undo_delete_message, id: 702869
    Device sessions

    4. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    5. test_community_mute_community_and_channel, id: 703382
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    Device sessions

    2. test_group_chat_mute_chat, id: 703495
    Device sessions

    3. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    4. test_group_chat_reactions, id: 703202
    Device sessions

    5. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    6. test_group_chat_offline_pn, id: 702808
    Device sessions

    Class TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    2. test_links_deep_links, id: 702775
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    3. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_mentions, id: 702957
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936
    Device sessions

    2. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_add_contact_field_validation, id: 702777
    Device sessions

    2. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    3. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809
    Device sessions

    2. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    3. test_community_mentions_push_notification, id: 702786
    Device sessions

    4. test_community_leave, id: 702845
    Device sessions

    5. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    2. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    4. test_1_1_chat_edit_message, id: 702855
    Device sessions

    5. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    6. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_community_message_delete, id: 702839
    Device sessions

    3. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    4. test_community_unread_messages_badge, id: 702841
    Device sessions

    @pavloburykh pavloburykh force-pushed the cl-19053-message-bottom-sheet branch from 9d46725 to 9ea2dca Compare March 3, 2024 12:18
    @status-im-auto
    Copy link
    Member

    98% of end-end tests have passed

    Total executed tests: 48
    Failed tests: 0
    Expected to fail tests: 1
    Passed tests: 47
    
    IDs of expected to fail tests: 703503 
    

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503
    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Curated communities not loading, https://github.com//issues/17852]]

    Passed tests (47)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    3. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    3. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    4. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    5. test_community_unread_messages_badge, id: 702841
    Device sessions

    6. test_community_message_delete, id: 702839
    Device sessions

    7. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    8. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    9. test_community_one_image_send_reply, id: 702859
    Device sessions

    10. test_community_message_edit, id: 702843
    Device sessions

    11. test_community_several_images_send_reply, id: 703194
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_markdown_support, id: 702809
    Device sessions

    4. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    5. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    3. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    4. test_community_undo_delete_message, id: 702869
    Device sessions

    5. test_community_mute_community_and_channel, id: 703382
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_edit_message, id: 702855
    Device sessions

    2. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    4. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    5. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    6. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    7. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    8. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202
    Device sessions

    2. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    3. test_group_chat_offline_pn, id: 702808
    Device sessions

    4. test_group_chat_pin_messages, id: 702732
    Device sessions

    5. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    6. test_group_chat_mute_chat, id: 703495
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    2. test_navigation_jump_to, id: 702936
    Device sessions

    Class TestDeepLinksOneDevice:

    1. test_links_deep_links, id: 702775
    Device sessions

    2. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    2. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    3. test_add_contact_field_validation, id: 702777
    Device sessions

    @pavloburykh
    Copy link
    Contributor

    @clauxx thanx for the PR. Could you please rebase and resolve existing conflicts so we proceed with testing? Thank you.

    @clauxx clauxx force-pushed the cl-19053-message-bottom-sheet branch 2 times, most recently from 9feb5e6 to 9b181c9 Compare March 11, 2024 09:44
    @clauxx
    Copy link
    Member Author

    clauxx commented Mar 11, 2024

    @pavloburykh the conflicts are fixed 👍

    @flexsurfer
    Copy link
    Member

    added #19164 as fixed

    @pavloburykh pavloburykh self-assigned this Mar 11, 2024
    @status-im-auto
    Copy link
    Member

    83% of end-end tests have passed

    Total executed tests: 48
    Failed tests: 7
    Expected to fail tests: 1
    Passed tests: 40
    
    IDs of failed tests: 702894,703202,702841,704615,702859,702869,703297 
    
    IDs of expected to fail tests: 703503 
    

    Failed tests (7)

    Click to expand
  • Rerun failed tests

  • Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202

    Device 3: Wait for text element `EmojisNumber` to be equal to `1`
    Device 3: Find `EmojisNumber` by `xpath`: `//*[starts-with(@text,'This is a test message to check some reactions.')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-1']/android.widget.TextView[2]`

    critical/chats/test_group_chat.py:120: in test_group_chat_reactions
        message_element.emojis_below_message(emoji="love").wait_for_element_text(1)
    ../views/base_element.py:181: in wait_for_element_text
        element_text = self.find_element().text.strip()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 3: EmojisNumber by xpath: `//*[starts-with(@text,'This is a test message to check some reactions.')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-1']/android.widget.TextView[2]` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
    



    Device sessions

    2. test_group_chat_send_image_save_and_share, id: 703297

    # STEP: Member_2 checks image message
    Device 3: Looking for a message by text: test image

    critical/chats/test_group_chat.py:230: in test_group_chat_send_image_save_and_share
        self.chats[2].chat_element_by_text(image_description).wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 3: ChatElementByText by xpath:`//*[starts-with(@text,'test image')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_contact_block_unblock_offline, id: 702894

    # STEP: Block user
    Device 1: Looking for a message by text: I should not be in chat

    critical/chats/test_public_chat_browsing.py:652: in test_community_contact_block_unblock_offline
        self.channel_1.chat_element_by_text(message_to_disappear).wait_for_visibility_of_element(30)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: ChatElementByText by xpath:`//*[starts-with(@text,'I should not be in chat')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    2. test_community_unread_messages_badge, id: 702841

    # STEP: Check new messages badge is shown for community
    Device 1: Click until ChatMessageInput by accessibility id: chat-message-input will be presented

    critical/chats/test_public_chat_browsing.py:635: in test_community_unread_messages_badge
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     New message community badge is not shown
    E    New messages channel badge is not shown on channel
    



    Device sessions

    3. test_community_edit_delete_message_when_offline, id: 704615

    Device 1: Looking for a message by text: text after edit
    Device 1: Looking for a message by text: message to delete

    critical/chats/test_public_chat_browsing.py:797: in test_community_edit_delete_message_when_offline
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Message 'message to delete' was not deleted for the receiver
    



    Device sessions

    4. test_community_one_image_send_reply, id: 702859

    Device 2: Find EmojisNumber by xpath: //*[starts-with(@text,'reply to image')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-1']/android.widget.TextView[2]
    Device 2: Element EmojisNumber text is equal to 1

    critical/chats/test_public_chat_browsing.py:501: in test_community_one_image_send_reply
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Image message reaction is not shown for the sender
    



    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_undo_delete_message, id: 702869

    Device 1: Tap on found: Button
    Device 1: Find Button by xpath: //*[@text="Undo"]

    critical/chats/test_public_chat_browsing.py:112: in test_community_undo_delete_message
        self.channel.element_by_text("Undo").click()
    ../views/base_element.py:90: in click
        element = self.find_element()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 1: Button by xpath: `//*[@text="Undo"]` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
    



    Device sessions

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Curated communities not loading, https://github.com//issues/17852]]

    Passed tests (40)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_edit_message, id: 702855
    Device sessions

    2. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    4. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    5. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    6. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    7. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    8. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    2. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    3. test_add_contact_field_validation, id: 702777
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    3. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    4. test_community_mute_community_and_channel, id: 703382
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    2. test_group_chat_offline_pn, id: 702808
    Device sessions

    3. test_group_chat_pin_messages, id: 702732
    Device sessions

    4. test_group_chat_mute_chat, id: 703495
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    Device sessions

    Class TestDeepLinksOneDevice:

    1. test_links_deep_links, id: 702775
    Device sessions

    2. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    3. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    4. test_community_message_delete, id: 702839
    Device sessions

    5. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    6. test_community_message_edit, id: 702843
    Device sessions

    7. test_community_several_images_send_reply, id: 703194
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    3. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_markdown_support, id: 702809
    Device sessions

    4. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    5. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    2. test_navigation_jump_to, id: 702936
    Device sessions

    @pavloburykh
    Copy link
    Contributor

    @pavloburykh the conflicts are fixed 👍

    @clauxx thank you! Could you please also take a look why integration tests are failing https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-19056/10/consoleText ?

    @clauxx
    Copy link
    Member Author

    clauxx commented Mar 11, 2024

    @pavloburykh the conflicts are fixed 👍

    @clauxx thank you! Could you please also take a look why integration tests are failing https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-19056/10/consoleText ?

    Sometimes the tests job seems to times out. I re-ran it and it passed now.

    @status-im-auto
    Copy link
    Member

    86% of end-end tests have passed

    Total executed tests: 7
    Failed tests: 1
    Expected to fail tests: 0
    Passed tests: 6
    
    IDs of failed tests: 704615 
    

    Failed tests (1)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_edit_delete_message_when_offline, id: 704615

    # STEP: Receiver is checking if initial messages were delivered
    Device 1: Looking for a message by text: message to edit

    critical/chats/test_public_chat_browsing.py:782: in test_community_edit_delete_message_when_offline
        self.channel_1.driver.fail("Message '%s' was not received")
    base_test_case.py:179: in fail
        pytest.fail('Device %s: %s' % (self.number, text))
     Device 1: Message '%s' was not received
    



    Device sessions

    Passed tests (6)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    2. test_community_unread_messages_badge, id: 702841
    Device sessions

    3. test_community_one_image_send_reply, id: 702859
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_undo_delete_message, id: 702869
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202
    Device sessions

    2. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    @clauxx
    Copy link
    Member Author

    clauxx commented Mar 12, 2024

    @VolodLytvynenko if you look at this design for instance, when the message doesn't fit it goes below the bottom sheet.

    @clauxx clauxx force-pushed the cl-19053-message-bottom-sheet branch 2 times, most recently from cc43fdc to b9392e3 Compare March 12, 2024 10:19
    @VolodLytvynenko
    Copy link
    Contributor

    VolodLytvynenko commented Mar 12, 2024

    Got it @clauxx , thank you. Now I see. The current case occurs only when a user taps their own message and only when using an iOS device.

    However there is opposite thing , in the case of Android or when an iOS user long-taps a long message from other users, the spacing is shown.

    Could you fix it please?

    ISSUE: Spacing between message preview and drawer is shown on Android or when a user on iOS long taps long text messages of other users.

    Steps:

    1. User A Sends long text message
    2. User BLong taps the message of User A
    3. Check the space between the drawer and message preview

    Actual result:

    • Spacing is shown between the message preview and the drawer for Android devices when any long message is long-tapped.
    • Spacing is shown between the message preview and the drawer for iOS devices when a user long-taps a message of other users.

    IOS record

    ios_drawer.mp4

    Android record

    android_drawer.mp4

    Expected result:

    No spacing is shown when long text message is long tapped
    https://www.figma.com/file/PPWkgOYlZZDxZv5SDGsZVV/Posts-%26-Attachments-for-Mobile?type=design&node-id=5713-623970&mode=design&t=jnAqgK6WEgBU1Y6a-0

    @clauxx
    Copy link
    Member Author

    clauxx commented Mar 13, 2024

    @VolodLytvynenko well I think the reason for that is that own messages have more options in the menu and less space for the message, so there's no gap if the message doesn't fit. It is basically dependent on the available space for the message. In the android example you showed, the screen is longer so both fit together with the space.

    @VolodLytvynenko
    Copy link
    Contributor

    @VolodLytvynenko well I think the reason for that is that own messages have more options in the menu and less space for the message, so there's no gap if the message doesn't fit. It is basically dependent on the available space for the message. In the android example you showed, the screen is longer so both fit together with the space.

    Hi @clauxx thank you for clarification. No other additional issues from my side. PR can be merged. Thanx!

    @clauxx
    Copy link
    Member Author

    clauxx commented Mar 13, 2024

    @Francesca-G can you have a look as well please?

    Copy link

    @Francesca-G Francesca-G left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Here's the review frame :)

    @clauxx
    Copy link
    Member Author

    clauxx commented Mar 19, 2024

    @Francesca-G please have a look again

    Copy link

    @Francesca-G Francesca-G left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Looks good ✨

    Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
    Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
    Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
    Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
    Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
    Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
    @clauxx clauxx force-pushed the cl-19053-message-bottom-sheet branch from fe73b8b to b71c59e Compare March 19, 2024 13:53
    @clauxx clauxx merged commit 2295b01 into develop Mar 19, 2024
    6 checks passed
    @clauxx clauxx deleted the cl-19053-message-bottom-sheet branch March 19, 2024 14:23
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Archived in project
    Archived in project
    Development

    Successfully merging this pull request may close these issues.

    Message preview issue with long-tapped messages Fix message from long-press bottom sheet
    8 participants