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

Composer size when re-entering with unfinished multiline message #18089

Merged
merged 3 commits into from
Jan 17, 2024

Conversation

clauxx
Copy link
Member

@clauxx clauxx commented Dec 6, 2023

fixes #17361

Summary

When re-entering the composer while there's an unfinished multiline message, the composer wouldn't show it properly. Even when focused, it only showed one line. Now, in the same scenario, it will show the first two lines of the message when not focused and the entire message when focused, as usual.

NOTE: additionally, added a fix to the composer bottom shadow, which should be shown when the composer is collapsed and has a multiline message.

Platforms

  • Android
  • iOS

Areas that maybe impacted

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

status: ready

@clauxx clauxx self-assigned this Dec 6, 2023
@status-im-auto
Copy link
Member

status-im-auto commented Dec 6, 2023

Jenkins Builds

Click to see older builds (39)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4de0e91 #1 2023-12-06 10:39:46 ~8 min android-e2e 🤖apk 📲
✔️ 4de0e91 #1 2023-12-06 10:39:46 ~8 min android 🤖apk 📲
✔️ 4de0e91 #1 2023-12-06 10:44:20 ~13 min ios 📱ipa 📲
✔️ 598d953 #2 2023-12-11 12:47:12 ~6 min android-e2e 🤖apk 📲
✔️ 598d953 #2 2023-12-11 12:47:15 ~6 min android 🤖apk 📲
✔️ 598d953 #2 2023-12-11 12:47:46 ~6 min ios 📱ipa 📲
✔️ 598d953 #2 2023-12-11 12:53:26 ~12 min tests 📄log
2b9fde1 #3 2023-12-12 09:54:15 ~5 min tests 📄log
✔️ 2b9fde1 #3 2023-12-12 09:55:08 ~6 min ios 📱ipa 📲
✔️ 2b9fde1 #3 2023-12-12 09:57:17 ~8 min android 🤖apk 📲
✔️ 2b9fde1 #3 2023-12-12 09:57:37 ~8 min android-e2e 🤖apk 📲
✔️ 97df178 #4 2023-12-21 11:20:34 ~4 min tests 📄log
✔️ 97df178 #4 2023-12-21 11:22:47 ~7 min ios 📱ipa 📲
✔️ 97df178 #4 2023-12-21 11:24:18 ~8 min android-e2e 🤖apk 📲
✔️ 97df178 #4 2023-12-21 11:24:20 ~8 min android 🤖apk 📲
f6c051a #5 2023-12-21 12:46:52 ~2 min tests 📄log
✔️ f6c051a #5 2023-12-21 12:51:41 ~7 min android-e2e 🤖apk 📲
✔️ f6c051a #5 2023-12-21 12:51:45 ~7 min android 🤖apk 📲
✔️ f6c051a #5 2023-12-21 12:57:26 ~12 min ios 📱ipa 📲
✔️ 7bea8b9 #6 2023-12-21 15:41:50 ~4 min tests 📄log
✔️ 7bea8b9 #6 2023-12-21 15:44:41 ~7 min android-e2e 🤖apk 📲
✔️ 7bea8b9 #6 2023-12-21 15:45:37 ~8 min android 🤖apk 📲
✔️ 7bea8b9 #6 2023-12-21 15:49:17 ~11 min ios 📱ipa 📲
✔️ 7dbef3f #7 2023-12-28 14:32:20 ~3 min tests 📄log
✔️ 7dbef3f #7 2023-12-28 14:35:30 ~7 min android-e2e 🤖apk 📲
✔️ 7dbef3f #7 2023-12-28 14:35:54 ~7 min android 🤖apk 📲
✔️ 7dbef3f #7 2023-12-28 14:39:21 ~11 min ios 📱ipa 📲
✔️ 9d87ede #8 2024-01-10 11:10:51 ~5 min tests 📄log
✔️ 9d87ede #8 2024-01-10 11:10:52 ~5 min ios 📱ipa 📲
✔️ 9d87ede #8 2024-01-10 11:13:08 ~7 min android-e2e 🤖apk 📲
✔️ 9d87ede #8 2024-01-10 11:21:13 ~15 min android 🤖apk 📲
✔️ 8709cc3 #9 2024-01-17 08:20:01 ~5 min tests 📄log
✔️ 8709cc3 #9 2024-01-17 08:22:12 ~7 min android-e2e 🤖apk 📲
✔️ 8709cc3 #9 2024-01-17 08:22:46 ~8 min android 🤖apk 📲
✔️ 8709cc3 #9 2024-01-17 08:22:51 ~8 min ios 📱ipa 📲
✔️ c933bdd #10 2024-01-17 08:40:01 ~5 min ios 📱ipa 📲
✔️ c933bdd #10 2024-01-17 08:40:31 ~6 min tests 📄log
✔️ c933bdd #10 2024-01-17 08:43:40 ~9 min android 🤖apk 📲
✔️ c933bdd #10 2024-01-17 08:43:43 ~9 min android-e2e 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a064beb #11 2024-01-17 10:17:16 ~5 min tests 📄log
✔️ a064beb #11 2024-01-17 10:17:25 ~5 min ios 📱ipa 📲
✔️ a064beb #11 2024-01-17 10:18:28 ~6 min android-e2e 🤖apk 📲
✔️ a064beb #11 2024-01-17 10:19:24 ~7 min android 🤖apk 📲
✔️ 8cf6dc4 #12 2024-01-17 11:16:23 ~5 min tests 📄log
✔️ 8cf6dc4 #12 2024-01-17 11:16:39 ~5 min ios 📱ipa 📲
✔️ 8cf6dc4 #12 2024-01-17 11:17:57 ~7 min android 🤖apk 📲
✔️ 8cf6dc4 #12 2024-01-17 11:19:00 ~8 min android-e2e 🤖apk 📲

Copy link
Contributor

@mohsen-ghafouri mohsen-ghafouri left a comment

Choose a reason for hiding this comment

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

👍🏻

@churik churik force-pushed the 17361-cl-multiline-composer-reenter branch from 598d953 to 2b9fde1 Compare December 12, 2023 09:48
@churik churik self-assigned this Dec 12, 2023
@churik
Copy link
Member

churik commented Dec 12, 2023

@clauxx
there is a new issue related to reopening chat.

ISSUE 1: The composer jumps off the screen is reopened chat with a long message

Steps:

  1. paste a long message (to expand composer to the max height)
  2. reopen channel
  3. focus on the composer

Actual result:

FILE.2023-12-12.16.11.39.mp4

OS: IOS, Android

@clauxx
Copy link
Member Author

clauxx commented Dec 21, 2023

Hey @churik, sorry for the long delay on this issue, was out sick last week. I fixed the issue you mentioned, but noticed that when re-entering the screen when there's an image added to the composer it focuses when opening the chat. This is different from the usual behavior, where it doesn't focus automatically. Is it intended?

Also, noticed the composer bottom shadow was not visible for multiline messages when it's collapsed, so fixed that as well.

@status-im-auto
Copy link
Member

77% of end-end tests have passed

Total executed tests: 48
Failed tests: 5
Expected to fail tests: 6
Passed tests: 37
Not executed tests: 1
IDs of not executed tests: 704614 
IDs of failed tests: 702777,703133,702851,703086,704615 
IDs of expected to fail tests: 702732,702948,702894,703503,702731,702808 

Not executed tests (1)

Click to expand
  • Rerun not executed tests
  • Failed tests (5)

    Click to expand
  • Rerun failed tests

  • Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_add_contact_field_validation, id: 702777

    Device 2: Button element not found
    Device 2: Find `Button` by `accessibility id`: `add-a-contact`

    activity_center/test_activity_center.py:153: in test_add_contact_field_validation
        self.home_2.add_a_contact_chat_bottom_sheet_button.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 2: Button by accessibility id: `add-a-contact` 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_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851

    Device 2: Logging out
    Device 2: Scrolling down to LogoutButton

    activity_center/test_activity_center.py:93: in test_activity_center_contact_request_accept_swipe_mark_all_as_read
        self.profile_2.logout()
    ../views/profile_view.py:479: in logout
        self.logout_dialog.logout_button.click()
    ../views/base_element.py:443: in click
        self.find_element().click()
    ../views/base_element.py:435: in find_element
        raise NoSuchElementException(
     Device 2: `LogoutButton` by `xpath`:`//*[@text="Log out" or @text="LOG OUT"]` 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

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133

    Device 1: Logging out
    Device 1: Scrolling down to LogoutButton

    critical/chats/test_public_chat_browsing.py:192: in test_restore_multiaccount_with_waku_backup_remove_switch
        profile.logout()
    ../views/profile_view.py:479: in logout
        self.logout_dialog.logout_button.click()
    ../views/base_element.py:443: in click
        self.find_element().click()
    ../views/base_element.py:435: in find_element
        raise NoSuchElementException(
     Device 1: `LogoutButton` by `xpath`:`//*[@text="Log out" or @text="LOG OUT"]` 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

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_mark_all_messages_as_read, id: 703086

    Device 1: Looking for chat: 'general'
    Device 1: Click system back button

    critical/chats/test_public_chat_browsing.py:755: in test_community_mark_all_messages_as_read
        community_1_element.long_press_until_element_is_shown(mark_as_read_button)
    ../views/base_element.py:318: in long_press_until_element_is_shown
        element = self.find_element()
    ../views/home_view.py:74: in find_element
        self.wait_for_visibility_of_element(20)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: ChatElement by xpath:`//*[@content-desc='chat-name-text'][starts-with(@text,'open community')]/..` is not found on the screen after wait_for_visibility_of_element; also Unexpected Alert is shown: 'Feature not implemented.'
    



    Device sessions

    2. test_community_edit_delete_message_when_offline, id: 704615

    Device 1: Could not reach home view by pressing system back button
    Device 1: Find CommunitiesTab by accessibility id: communities-stack-tab

    critical/chats/test_public_chat_browsing.py:773: in test_community_edit_delete_message_when_offline
        self.home_1.communities_tab.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 1: CommunitiesTab by accessibility id: `communities-stack-tab` 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; also Unexpected Alert is shown: 'Feature not implemented.'
    



    Device sessions

    Expected to fail tests (6)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_contact_block_unblock_offline, id: 702894

    Device 1: Find ProfileButton by accessibility id: open-profile
    Device 1: Wait for element Button for max 30s and click when it is available

    critical/chats/test_public_chat_browsing.py:687: in test_community_contact_block_unblock_offline
        profile_1.contacts_button.wait_and_click()
    ../views/base_element.py:96: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: Button by accessibility id:`contacts-button` is not found on the screen after wait_for_visibility_of_element 
    

    [[Message can be missed after unblock: https://github.com//issues/16873]]

    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_hashtag_links_to_community_channels, id: 702948

    # STEP: Device 1 sends a message with hashtag in the dogs channel
    Device 1: Sending message '#cats'

    critical/chats/test_public_chat_browsing.py:1036: in test_community_hashtag_links_to_community_channels
        self.channel_1.send_message(message_with_hashtag)
    ../views/chat_view.py:1004: in send_message
        self.chat_message_input.wait_for_element(wait_chat_input_sec)
    ../views/base_element.py:121: in wait_for_element
        raise TimeoutException(
     Device `1`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element ; 
     RemoteDisconnected
    

    [[Can't navigate to a channel by hashtag link, https://github.com//issues/18095]]

    Device sessions

    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]]

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Pin feature is in development]]

    2. test_group_chat_offline_pn, id: 702808

    Device 3: Looking for a message by text: message from old member
    Device 3: Looking for a message by text: message from new member

    critical/chats/test_group_chat.py:324: in test_group_chat_offline_pn
        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))]))
     Messages PN was not fetched from offline 
    

    [[Data delivery issue]]

    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_pin_messages, id: 702731

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Pin feature is in development]]

    Passed tests (37)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    2. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    3. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    4. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    5. test_1_1_chat_edit_message, id: 702855
    Device sessions

    6. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    7. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194
    Device sessions

    2. test_community_one_image_send_reply, id: 702859
    Device sessions

    3. test_community_emoji_send_copy_paste_reply, id: 702840
    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_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    7. test_community_message_edit, id: 702843
    Device sessions

    8. test_community_unread_messages_badge, id: 702841
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_leave, id: 702845
    Device sessions

    4. test_community_join_when_node_owner_offline, id: 703629
    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 TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_community_undo_delete_message, id: 702869
    Device sessions

    3. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    4. test_community_mute_community_and_channel, id: 703382
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_mute_chat, id: 703495
    Device sessions

    2. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    3. test_group_chat_reactions, id: 703202
    Device sessions

    4. test_group_chat_join_send_text_messages_push, id: 702807
    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 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

    @churik churik force-pushed the 17361-cl-multiline-composer-reenter branch from 7bea8b9 to 7dbef3f Compare December 28, 2023 14:28
    @status-im-auto
    Copy link
    Member

    85% of end-end tests have passed

    Total executed tests: 48
    Failed tests: 3
    Expected to fail tests: 4
    Passed tests: 41
    
    IDs of failed tests: 702786,702745,703133 
    
    IDs of expected to fail tests: 702731,702808,702732,703503 
    

    Failed tests (3)

    Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745

    Device 1: Tap on found: Button
    Device 1: Find `ProfilePictureElement` by `accessibility id`: `chat-icon`

    critical/chats/test_1_1_public_chats.py:272: in test_1_1_chat_non_latin_messages_stack_update_profile_photo
        self.profile_1.edit_profile_picture(image_index=2)
    ../views/profile_view.py:443: in edit_profile_picture
        self.profile_picture.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 1: ProfilePictureElement by accessibility id: `chat-icon` 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

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_mentions_push_notification, id: 702786

    # STEP: Invited member gets push notification with the mention and tap it
    Device 2: Getting PN by 'user_2'

    critical/chats/test_public_chat_browsing.py:925: in test_community_mentions_push_notification
        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 reaction is not shown for the sender
    E    Push notification with the mention was not received by the invited member
    



    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133

    Device 1: Find Button by accessibility id: show-profiles
    Device 1: Tap on found: Button

    critical/chats/test_public_chat_browsing.py:273: in test_restore_multiaccount_with_waku_backup_remove_switch
        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))]))
     zQ3...dWXh5 was not restored as a contact from waku backup!
    E    zQ3...Vacac was not restored as a contact from waku backup!
    E    admin_open was not restored from waku-backup!!
    E    member_open was not restored from waku-backup!!
    E    admin_closed was not restored from waku-backup!!
    E    member_closed was not restored from waku-backup!!
    



    Device sessions

    Expected to fail tests (4)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_pin_messages, id: 702731

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Pin feature is in development]]

    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]]

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_offline_pn, id: 702808

    Device 3: Looking for a message by text: message from old member
    Device 3: Looking for a message by text: message from new member

    critical/chats/test_group_chat.py:324: in test_group_chat_offline_pn
        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))]))
     Messages PN was not fetched from offline 
    

    [[Data delivery issue]]

    Device sessions

    2. test_group_chat_pin_messages, id: 702732

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Pin feature is in development]]

    Passed tests (41)

    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_text_message_delete_push_disappear, id: 702733
    Device sessions

    4. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    5. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    6. test_1_1_chat_send_image_save_and_share, id: 703391
    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 TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845
    Device sessions

    2. test_community_markdown_support, id: 702809
    Device sessions

    3. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    4. test_community_join_when_node_owner_offline, id: 703629
    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 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_community_undo_delete_message, id: 702869
    Device sessions

    4. test_community_mute_community_and_channel, id: 703382
    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 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 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 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_send_image_save_and_share, id: 703297
    Device sessions

    4. test_group_chat_mute_chat, id: 703495
    Device sessions

    @churik
    Copy link
    Member

    churik commented Dec 29, 2023

    @clauxx the behavior is definitely better, but still see that the composer jumps of and part of the text is hidden behind the keyboard until you start typing. The issue is reproducible on IOS only.

    FILE.2023-12-29.14.33.31.mp4

    @churik churik removed their assignment Dec 29, 2023
    @mariia-skrypnyk mariia-skrypnyk self-assigned this Jan 3, 2024
    @flexsurfer
    Copy link
    Member

    hey @clauxx any updates? still relevant?

    @clauxx
    Copy link
    Member Author

    clauxx commented Jan 9, 2024

    @flexsurfer just came back from vacation. Will look check it out tomorrow.

    :style bottom-gradient-style})
    {:colors [(colors/theme-colors colors/white-opa-90 colors/neutral-95-opa-60)
    (colors/theme-colors colors/white-opa-30 colors/neutral-95-opa-0)
    ]
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Hi @clauxx, Thank you very much for your PR.

    1. Please can you elaborate, how these changes are related to current issue?
    2. Also, Sorry I am having little hard time locating these values. Please can you provide an link?

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    1. It's an additional UI fix to the composer, where for multiline messages there should be a bottom shadow at the bottom when collapsed/minimized. I mentioned it to QA in a comment above, but will add it to the issue description as well.
    2. If you mean a design link, then the composer design should do it. But I didn't change the colors here, just adjusted the opacity and the gradient position so it looks according to the design.

    Copy link
    Member

    @Parveshdhull Parveshdhull Jan 10, 2024

    Choose a reason for hiding this comment

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

    so it looks according to the design

    Yes, that's what I am curious about. Please can you provide any reference what we are fixing here and what is not matching with design (maybe a screenshot or video). So we can know why it doesn't look design. Is it implementation issue or we are using different values then figma.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Checked it against the designs and seems like this change is not necessary. I remember comparing it with the design at the time and the shadow being barely visible but it looks fine without these changes. Just the z-index fix should be enough to fix the bottom shadow, as before it wasn't visible at all. Thanks for being thorough with this 👍

    0
    0

    @clauxx
    Copy link
    Member Author

    clauxx commented Jan 10, 2024

    @Parveshdhull since you're already working on refactoring the composer and I don't have many changes here, we could close this given it'll be fixed in the refactor.

    @Parveshdhull
    Copy link
    Member

    Parveshdhull commented Jan 10, 2024

    @Parveshdhull since you're already working on refactoring the composer and I don't have many changes here, we could close this given it'll be fixed in the refactor.

    No, it's alright. Refactoring of composer is gradual and probably will not be complete (and address this issue) before release. Please feel free to continue working on this, currently, it doesn't create any conflicts.

    @clauxx
    Copy link
    Member Author

    clauxx commented Jan 10, 2024

    Hi @mariia-skrypnyk! I checked the issue that @churik mentioned, but can't reproduce it. Could you check if the issue is happening on your side?

    @flexsurfer
    Copy link
    Member

    cc @pavloburykh

    @pavloburykh
    Copy link
    Contributor

    @clauxx please rebase the branch and resolve the conflicts. After that we will continue testing.

    @status-im-auto
    Copy link
    Member

    81% of end-end tests have passed

    Total executed tests: 48
    Failed tests: 6
    Expected to fail tests: 3
    Passed tests: 39
    
    IDs of failed tests: 702809,702782,703133,702745,702786,702731 
    
    IDs of expected to fail tests: 703503,702808,703629 
    

    Failed tests (6)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133

    Device 1: Find `Button` by `accessibility id`: `show-profiles`
    Device 1: Tap on found: Button

    critical/chats/test_public_chat_browsing.py:273: in test_restore_multiaccount_with_waku_backup_remove_switch
        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))]))
     zQ3...dWXh5 was not restored as a contact from waku backup!
    E    zQ3...Vacac was not restored as a contact from waku backup!
    E    admin_open was not restored from waku-backup!!
    E    member_open was not restored from waku-backup!!
    E    admin_closed was not restored from waku-backup!!
    E    member_closed was not restored from waku-backup!!
    



    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809

    Device 1: Looking for a message by text: quote reply (one row)
    Device 2: Looking for a message by text: quote reply (one row)

    critical/chats/test_public_chat_browsing.py:977: in test_community_markdown_support
        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))]))
     code blocks is not displayed with markdown in community channel for the recipient (device 1)
    



    Device sessions

    2. test_community_mentions_push_notification, id: 702786

    Device 2: Getting PN by 'user_2'
    Device 2: Looking for a message by text: user_2

    critical/chats/test_public_chat_browsing.py:925: in test_community_mentions_push_notification
        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))]))
     Edited message is not shown correctly for the (receiver) admin
    



    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782

    Device 2: Find OpenInStatusButton by xpath: //*[@text="Open in Status"]
    Device 2: Tap on found: OpenInStatusButton

    critical/chats/test_1_1_public_chats.py:175: in test_1_1_chat_emoji_send_reply_and_open_link
        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 for 'Test with link: https://status.im/ here should be nothing unusual.' not present in message received in public chat
    



    Device sessions

    2. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745

    Device 2: Find MemberPhoto by xpath: //*[starts-with(@text,'profile_photo')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//*[@content-desc='user-avatar']
    Device 2: Image differs from template to 5.276094324448529 percents

    critical/chats/test_1_1_public_chats.py:311: in test_1_1_chat_non_latin_messages_stack_update_profile_photo
        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 with text '¿Cómo estás tu año?' was not received
    



    Device sessions

    3. test_1_1_chat_pin_messages, id: 702731

    Device 1: Find Text by xpath: //*[starts-with(@text,'Message 1')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//*[@content-desc='message-status']/android.widget.TextView
    Device 1: Text is Sent

    critical/chats/test_1_1_public_chats.py:183: in test_1_1_chat_pin_messages
        self.chat_1.chat_element_by_text(self.message_1).wait_for_status_to_be("Delivered")
    ../views/chat_view.py:243: in wait_for_status_to_be
        raise TimeoutException("Message status was not changed to %s, it's %s" % (expected_status, current_status))
     Message status was not changed to Delivered, it's Sent
    



    Device sessions

    Expected to fail tests (3)

    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]]

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_offline_pn, id: 702808

    Device 3: Looking for a message by text: message from old member
    Device 3: Looking for a message by text: message from new member

    critical/chats/test_group_chat.py:324: in test_group_chat_offline_pn
        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))]))
     Messages PN was not fetched from offline 
    

    [[Data delivery issue]]

    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_join_when_node_owner_offline, id: 703629

    Device 2: Tap on found: Button
    Device 2: Looking for community: 'open community'

    critical/chats/test_public_chat_browsing.py:1175: in test_community_join_when_node_owner_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))]))
     open community is not listed inside Pending communities tab
    E    Joined status is not displayed
    E    open community is not listed inside Joined communities tab 
    

    [[Can't join a community if admin goes offline, https://github.com//issues/17678]]

    Device sessions

    Passed tests (39)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194
    Device sessions

    2. test_community_one_image_send_reply, id: 702859
    Device sessions

    3. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    4. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    5. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    6. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    9. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    10. test_community_message_edit, id: 702843
    Device sessions

    11. test_community_unread_messages_badge, id: 702841
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    2. test_community_leave, id: 702845
    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 TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    2. test_links_deep_links, id: 702775
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_community_undo_delete_message, id: 702869
    Device sessions

    3. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    4. test_community_mute_community_and_channel, id: 703382
    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 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 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

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    2. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    3. test_1_1_chat_edit_message, id: 702855
    Device sessions

    4. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    5. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    fix: composer space when expanding after re-entering
    
    fix: composer bottom shadow and maximized state atom
    
    fix: removing composer bottom gradient style changes
    @clauxx clauxx force-pushed the 17361-cl-multiline-composer-reenter branch from 8709cc3 to c933bdd Compare January 17, 2024 08:34
    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Jan 17, 2024

    Hi @mariia-skrypnyk! I checked the issue that @churik mentioned, but can't reproduce it. Could you check if the issue is happening on your side?

    Hi @clauxx !

    Thanks for the update!
    I have iPhone 13 iOS 17.2.1 and I am still catching composer jump.
    Pavlo has iPhone X, IOS 16.7.2 and catches it also.

    Let me show you my steps:

    1. Open composer
    2. Put text with short rows like I do on the video
    3. You should have a lot of text to make cursor be at the bottom of composer
    4. Tap on Return 10-20 times (at this step my cursor start hiding)
    5. Try to type short text rows again

    I attached my and Pavlo's videos:

    video_2024-01-17_10-51-03.mp4
    video_2024-01-17_10-51-20.mp4

    Please, let me know if you need any additional help to catch this tricky issue!

    @clauxx
    Copy link
    Member Author

    clauxx commented Jan 17, 2024

    @mariia-skrypnyk Thanks for finding this! I think this issue is a bit different than the one reported by churik and the one I'm fixing here. Maybe would be best to have it as a separate issue, what do you think?

    @mariia-skrypnyk
    Copy link

    @mariia-skrypnyk Thanks for finding this! I think this issue is a bit different than the one reported by churik and the one I'm fixing here. Maybe would be best to have it as a separate issue, what do you think?

    @mariia-skrypnyk Thanks for finding this! I think this issue is a bit different than the one reported by churik and the one I'm fixing here. Maybe would be best to have it as a separate issue, what do you think?

    No problem @clauxx. I add it as a new one:)
    So, go ahead and merge this PR.

    @clauxx clauxx merged commit 72bf8a8 into develop Jan 17, 2024
    6 checks passed
    @clauxx clauxx deleted the 17361-cl-multiline-composer-reenter branch January 17, 2024 11:24
    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.

    Composer: can't see the entire multiline message in collapsed composer after reopening the chat [Android]
    10 participants