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

Update "Preview List" component to use "Number Tag" for overflow item #17257

Merged
merged 6 commits into from
Sep 25, 2023

Conversation

smohamedjavid
Copy link
Member

@smohamedjavid smohamedjavid commented Sep 12, 2023

fixes #17256

Summary

This PR updates

  • the preview-list component to use number-tag for overflow items in the list as a follow-up of PR Update "Preview list" component #17051 (review).

  • the usage of the preview-list component in the context-tag (multiuser and multinetwork type) is updated as it was broken.

  • the size APIs of preview-list and number-tag and their usage across the codebase to respect the new guidelines.

Testing notes

It's good to have this PR go through QA as these components are used in several screens and through quick design review.

Platforms

  • Android
  • iOS

Steps to test (design review)

Preview List component

  • Open Status
  • Navigate to Quo2 preview > list-items > preview-lists

Context Tag component

  • Open Status
  • Navigate to Quo2 preview > tags > context-tags

status: ready

@smohamedjavid smohamedjavid self-assigned this Sep 12, 2023
@smohamedjavid smohamedjavid marked this pull request as ready for review September 12, 2023 09:57
@status-im-auto
Copy link
Member

status-im-auto commented Sep 12, 2023

Jenkins Builds

Click to see older builds (28)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8f93cf4 #1 2023-09-12 10:02:18 ~5 min android-e2e 🤖apk 📲
✔️ 8f93cf4 #1 2023-09-12 10:03:53 ~7 min ios 📱ipa 📲
✔️ 8f93cf4 #1 2023-09-12 10:06:37 ~9 min tests 📄log
✔️ 8f93cf4 #1 2023-09-12 10:06:51 ~10 min android 🤖apk 📲
✔️ 5362297 #2 2023-09-12 16:42:57 ~5 min android 🤖apk 📲
✔️ 5362297 #2 2023-09-12 16:43:04 ~5 min android-e2e 🤖apk 📲
✔️ 5362297 #2 2023-09-12 16:43:30 ~6 min ios 📱ipa 📲
✔️ 5362297 #2 2023-09-12 16:45:52 ~8 min tests 📄log
✔️ 88063f0 #3 2023-09-13 11:52:13 ~9 min ios 📱ipa 📲
✔️ 88063f0 #3 2023-09-13 11:52:22 ~9 min android-e2e 🤖apk 📲
✔️ 88063f0 #3 2023-09-13 11:52:25 ~9 min tests 📄log
✔️ 88063f0 #3 2023-09-13 11:53:13 ~10 min android 🤖apk 📲
✔️ 44e3265 #4 2023-09-14 10:48:24 ~5 min android-e2e 🤖apk 📲
✔️ 44e3265 #4 2023-09-14 10:49:48 ~6 min ios 📱ipa 📲
✔️ 44e3265 #4 2023-09-14 10:50:54 ~7 min android 🤖apk 📲
✔️ 44e3265 #4 2023-09-14 10:52:26 ~9 min tests 📄log
✔️ a9a174f #5 2023-09-14 11:11:38 ~5 min android-e2e 🤖apk 📲
✔️ a9a174f #5 2023-09-14 11:13:35 ~7 min ios 📱ipa 📲
✔️ a9a174f #5 2023-09-14 11:15:31 ~9 min android 🤖apk 📲
✔️ a9a174f #5 2023-09-14 11:16:03 ~9 min tests 📄log
ae8aca6 #6 2023-09-14 14:11:56 ~2 min tests 📄log
✔️ ae8aca6 #6 2023-09-14 14:15:39 ~6 min android-e2e 🤖apk 📲
✔️ ae8aca6 #6 2023-09-14 14:15:52 ~6 min android 🤖apk 📲
✔️ ae8aca6 #6 2023-09-14 14:19:22 ~10 min ios 📱ipa 📲
✔️ c89af9c #7 2023-09-15 09:55:47 ~5 min android-e2e 🤖apk 📲
✔️ c89af9c #7 2023-09-15 09:56:30 ~6 min ios 📱ipa 📲
✔️ c89af9c #7 2023-09-15 09:59:24 ~9 min android 🤖apk 📲
✔️ c89af9c #7 2023-09-15 10:00:25 ~10 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ bada48c #9 2023-09-25 10:27:06 ~5 min android 🤖apk 📲
✔️ bada48c #9 2023-09-25 10:29:01 ~7 min android-e2e 🤖apk 📲
✔️ bada48c #9 2023-09-25 10:29:49 ~8 min ios 📱ipa 📲
✔️ bada48c #9 2023-09-25 10:31:00 ~9 min tests 📄log
✔️ 6c59263 #10 2023-09-25 11:56:06 ~9 min android-e2e 🤖apk 📲
✔️ 6c59263 #10 2023-09-25 11:56:23 ~9 min android 🤖apk 📲
✔️ 6c59263 #10 2023-09-25 11:56:54 ~10 min ios 📱ipa 📲
✔️ 6c59263 #10 2023-09-25 11:57:12 ~10 min tests 📄log

@status-im-auto
Copy link
Member

77% of end-end tests have passed

Total executed tests: 43
Failed tests: 10
Passed tests: 33
IDs of failed tests: 702732,702957,702894,702783,703503,703496,702786,702731,702808,702958 

Failed tests (10)

Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. 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/test_public_chat_browsing.py:967: 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! 
    

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

    Device sessions

    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:442: 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
    



    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_mentions, id: 702957

    Device 2: Looking for chat: 'general'
    Device 2: Click until ChatMessageInput by accessibility id: chat-message-input will be presented

    Test setup failed: medium/test_activity_center.py:326: in prepare_devices
        self.channel_2.chat_message_input.wait_for_visibility_of_element(20)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatMessageInput by accessibility id:`chat-message-input` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958

    Test setup failed: medium/test_activity_center.py:326: in prepare_devices
        self.channel_2.chat_message_input.wait_for_visibility_of_element(20)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatMessageInput by accessibility id:`chat-message-input` is not found on the screen after wait_for_visibility_of_element
    



    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

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

    critical/chats/test_1_1_public_chats.py:1416: in test_1_1_chat_is_shown_message_sent_delivered_from_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 was not delivered after resending from offline
    E    Message status was not changed to Delivered, it's Sent after back up online!
    



    Device sessions

    2. test_1_1_chat_mute_chat, id: 703496

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

    critical/chats/test_1_1_public_chats.py:1457: in test_1_1_chat_mute_chat
        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 text 'should be muted' is not shown in chat preview after mute
    E    Message 'should be muted' is not shown in chat for receiver after mute
    E    New messages counter is not shown after unmute
    E    Message text 'after unmute' is not shown in chat preview after unmute
    



    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/test_public_chat_browsing.py:1149: 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))]))
     Push notification with the mention was not received by admin
    E    Can not edit a message with a mention
    E    Push notification with the mention was not received by the invited member 
    

    [[Issue with username in PN, issue #6 in 15500]]

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

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] https://github.com//issues/17175]]

    Passed tests (33)

    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_message_delete, id: 702839
    Device sessions

    6. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    7. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    8. test_community_message_edit, id: 702843
    Device sessions

    9. test_community_unread_messages_badge, id: 702841
    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 TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    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 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_leave, id: 702845
    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

    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

    Copy link
    Contributor

    @ulisesmac ulisesmac left a comment

    Choose a reason for hiding this comment

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

    Looks nice 💯 👍

    Comment on lines -82 to +34
    {:source (:source item)
    {:source (or (:source item) item)
    :style {:width size
    :height size
    :border-radius border-radius}}]

    (:tokens :network :dapps) [fast-image/fast-image
    {:source (:source item)
    {:source (or (:source item) item)
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    I guess item can be a map and at the same time it can be a value (i guess a string). but this is not safe to do, I'd suggest to just be one type of thing.

    The problem is we could get an exception while trying to extract a key from a string if we attempt: (:source "hey")

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Yes, @ulisesmac. The item can be a map or number (for local resources) or string (for URL).

    The problem is we could get an exception while trying to extract a key from a string if we attempt: (:source "hey")

    We won't get any exceptions. The form (:source "hey") will produce nil. And since we use the or method, it will fall back to item.

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Oh, ok, it seems Clojurescript is pretty flexible sometimes.

    Thanks!

    Comment on lines 101 to 105
    [preview-list/view {:type :user :size :size/s-20}
    users]

    :multinetwork
    [preview-list/view {:type :network :size 20}
    (map #(hash-map :profile-picture %) networks)]
    [preview-list/view {:type :network :size :size/s-20}
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Nice 👍 !!!

    But still I don't agree to adding that s- preffix because how will we know when it's an s, m or l? I know this is not related to this PR, but wanted to mention it

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    the s- is confusing people so let's remove it. Just :size-20 etc is fine 👍 will be putting this in the docs

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    I will update it in this PR for the preview-list and number-tag components and their usage across the codebase. 👍

    Comment on lines 57 to 65
    (defn container
    [{:keys [type number size blur? theme]}]
    {:style {:width (get-width size number)
    :height (get-in sizes [size :size])
    :border-radius (get-shape-value size :border-radius type)
    :justify-content :center
    :align-items :center
    :background-color (get-bg-color blur? theme)}})
    [{:keys [type number size blur? theme container-style]}]
    {:style (merge {:width (get-width size number)
    :height (get-in sizes [size :size])
    :border-radius (get-shape-value size :border-radius type)
    :justify-content :center
    :align-items :center
    :background-color (get-bg-color blur? theme)}
    container-style)})
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    container-style could override the width and height of the component, and maybe we don't want it.
    So, wdyt about:
    (assoc container-style :width ... :height ... :border-radius ... )` to preserve the original styles even if they try to override them?

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    Agreed 👍

    :number 4
    :more-than-99-label "99+"})
    (let [state (reagent/atom {:type :accounts
    :size :size/s-32
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    again, about s-32, why not m-32 or l-32? do we have a rule to know when to use each letter?

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    let's use :size-32 - see discussion and result here:
    #17279

    btw the idea was to always use -s as in -size, so clearly that idea was confusing 😆

    @status-im-auto
    Copy link
    Member

    77% of end-end tests have passed

    Total executed tests: 43
    Failed tests: 10
    Passed tests: 33
    
    IDs of failed tests: 703194,702859,702732,702840,702783,703503,702786,702844,702731,702808 
    

    Failed tests (10)

    Click to expand
  • Rerun failed tests

  • 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:442: 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
    



    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194

    Device 2: ChatMessageInput element not found
    Device 2: Looking for a message by text: gallery

    critical/test_public_chat_browsing.py:686: in test_community_several_images_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))]))
     Gallery message was not received; 
     RemoteDisconnected
    



    Device sessions

    2. test_community_one_image_send_reply, id: 702859

    Device 2: Looking for a message by text: description
    Device 2: Looking for a message by text: description

    critical/test_public_chat_browsing.py:697: in test_community_one_image_send_reply
        self.channel_2.chat_element_by_text(image_description).wait_for_visibility_of_element(10)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatElementByText by xpath:`//*[starts-with(@text,'description')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    3. test_community_emoji_send_copy_paste_reply, id: 702840

    Device 2: Quoting '🏋🏻‍♂️' message
    Device 2: Find BaseElement by xpath: //*[@content-desc=':chat-floating-screen']//*[starts-with(@text,'🏋🏻‍♂️')]

    critical/test_public_chat_browsing.py:778: in test_community_emoji_send_copy_paste_reply
        self.channel_2.quote_message(emoji_unicode)
    ../views/chat_view.py:1052: in quote_message
        self.chat_view_element_starts_with_text(message).long_press_until_element_is_shown(self.reply_message_button)
    ../views/base_element.py:317: in long_press_until_element_is_shown
        element = self.find_element()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 2: BaseElement by xpath: `//*[@content-desc=':chat-floating-screen']//*[starts-with(@text,'🏋🏻‍♂️')]` 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

    4. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    # STEP: Checking github_pr preview case
    Device 2: Find ChatMessageInput by accessibility id: chat-message-input

    critical/test_public_chat_browsing.py:834: in test_community_links_with_previews_github_youtube_twitter_gif_send_enable
        self.channel_2.chat_message_input.send_keys(url)
    ../views/base_element.py:367: in send_keys
        self.find_element().send_keys(value)
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 2: ChatMessageInput by accessibility id: `chat-message-input` 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; 
     RemoteDisconnected
    



    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/test_public_chat_browsing.py:1149: 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))]))
     Push notification with the mention was not received by admin
    E    Can not edit a message with a mention
    E    Push notification with the mention was not received by the invited member 
    

    [[Issue with username in PN, issue #6 in 15500]]

    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

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

    critical/chats/test_1_1_public_chats.py:1416: in test_1_1_chat_is_shown_message_sent_delivered_from_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 was not delivered after resending from offline
    E    Message status was not changed to Delivered, it's Sent after back up online!
    



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

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] https://github.com//issues/17175]]

    Passed tests (33)

    Click to expand

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

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    2. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    3. test_community_message_delete, id: 702839
    Device sessions

    4. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    5. test_community_message_edit, id: 702843
    Device sessions

    6. test_community_unread_messages_badge, id: 702841
    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_leave, id: 702845
    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 TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    2. test_1_1_chat_mute_chat, id: 703496
    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 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 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

    @qoqobolo qoqobolo self-assigned this Sep 15, 2023
    @status-im-auto
    Copy link
    Member

    86% of end-end tests have passed

    Total executed tests: 43
    Failed tests: 6
    Passed tests: 37
    
    IDs of failed tests: 702786,702731,702808,702809,702732,703503 
    

    Failed tests (6)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_mentions_push_notification, id: 702786

    # STEP: Invited member sends a message with a mention
    Device 2: Sending message 'hi'

    critical/test_public_chat_browsing.py:1081: in test_community_mentions_push_notification
        self.channel_2.send_message("hi")
    ../views/chat_view.py:995: 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 `2`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element 
    

    [[Issue with username in PN, issue #6 in 15500]]

    Device sessions

    2. test_community_markdown_support, id: 702809

    # STEP: Checking that "bold text in asterics" is applied (**) in community channel
    Device 2: Sending message 'bold text in asterics'

    critical/test_public_chat_browsing.py:1172: in test_community_markdown_support
        self.channel_2.send_message(message_to_send)
    ../views/chat_view.py:995: 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 `2`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element
    



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

    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:442: 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
    



    Device sessions

    2. test_group_chat_pin_messages, id: 702732

    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] https://github.com//issues/17175]]

    Passed tests (37)

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

    5. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    6. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

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

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845
    Device sessions

    2. test_community_hashtag_links_to_community_channels, id: 702948
    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 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

    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 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_one_image_send_reply, id: 702859
    Device sessions

    9. test_community_message_edit, id: 702843
    Device sessions

    10. test_community_several_images_send_reply, id: 703194
    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 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

    @qoqobolo
    Copy link
    Contributor

    Thanks @smohamedjavid, LGTM.
    PR is ready for design review.

    @smohamedjavid
    Copy link
    Member Author

    Thanks for testing the PR @qoqobolo.

    Since @Francesca-G is away. I believe this PR needs to wait.

    @qoqobolo
    Copy link
    Contributor

    @smohamedjavid yeah, Pedro said that they were gonna find someone for this week for PRs review (Discord message)
    Thanks for waiting!🙏

    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.

    • Preview lists: the component looks good ✨
    • Context tags: here's the review

    @smohamedjavid smohamedjavid force-pushed the feature/preview-list-follow-up branch 2 times, most recently from a21d91f to bada48c Compare September 25, 2023 10:21
    @smohamedjavid
    Copy link
    Member Author

    @Francesca-G Thank you for reviewing this PR!

    I have addressed the comments from Design feedback for the Context Tag component. Please review.

    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    @smohamedjavid smohamedjavid merged commit a9b63e0 into develop Sep 25, 2023
    6 checks passed
    @smohamedjavid smohamedjavid deleted the feature/preview-list-follow-up branch September 25, 2023 11:58
    ibrkhalil pushed a commit that referenced this pull request Oct 1, 2023
    …#17257)
    
    This commit updates
    
    - the preview-list component to use "number-tag" for overflow items in the list as a follow-up of the PR Update "Preview list" component.
    
    - the usage of the preview-list component in the context-tag (multiuser and multinetwork type) is updated as it was broken.
    
    - the size APIs of preview-list and number-tag and their usage across the codebase to respect the new guidelines.
    
    ---------
    
    Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
    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.

    Replace overflow label with "Number Tag" component in "Preview List" component
    6 participants