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(universal-link): more new link format, handle old link format #17721

Merged
merged 9 commits into from
Nov 2, 2023

Conversation

yqrashawn
Copy link
Contributor

@yqrashawn yqrashawn commented Oct 23, 2023

Summary

  • add support for private chat and community join request back
  • add support for /u#<user-chat-key>
  • add support for /c#<community-id>
  • change old /c/<user-chat-key> to new /c#<user-chat-key>
  • update community-chat notification deep link to new format /cc/<community-channel-id>#<community-id>

fixes #17718
fixes #17725
fixes #17722
fixes #17723


Testing notes

Platforms

  • Android
  • iOS

Areas that maybe impacted

anywhere related to old /u/pubkey link
anything related to universal/deep link

status: ready

Copy link
Contributor

@ibrkhalil ibrkhalil 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 so much!

@status-im-auto
Copy link
Member

status-im-auto commented Oct 23, 2023

Jenkins Builds

Click to see older builds (89)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ d74f564 #2 2023-10-23 13:34:16 ~6 min android 🤖apk 📲
✔️ d74f564 #2 2023-10-23 13:34:23 ~6 min android-e2e 🤖apk 📲
✔️ d74f564 #2 2023-10-23 13:36:25 ~8 min tests 📄log
✔️ d74f564 #2 2023-10-23 13:37:06 ~9 min ios 📱ipa 📲
03e922e #3 2023-10-25 08:53:10 ~4 min tests 📄log
✔️ 03e922e #3 2023-10-25 08:55:04 ~6 min android-e2e 🤖apk 📲
✔️ 03e922e #3 2023-10-25 08:55:51 ~7 min android 🤖apk 📲
✔️ 03e922e #3 2023-10-25 08:59:10 ~10 min ios 📱ipa 📲
8a32d46 #5 2023-10-25 12:28:50 ~4 min tests 📄log
✔️ 8a32d46 #5 2023-10-25 12:31:06 ~6 min android-e2e 🤖apk 📲
✔️ 8a32d46 #5 2023-10-25 12:32:38 ~8 min android 🤖apk 📲
✔️ 8a32d46 #5 2023-10-25 12:32:45 ~8 min ios 📱ipa 📲
6556619 #6 2023-10-26 04:23:27 ~1 min android 📄log
6556619 #6 2023-10-26 04:23:31 ~1 min android-e2e 📄log
6556619 #6 2023-10-26 04:23:41 ~1 min tests 📄log
6556619 #6 2023-10-26 04:26:55 ~5 min ios 📄log
7e5d9aa #7 2023-10-26 12:25:22 ~4 min tests 📄log
✔️ 7e5d9aa #7 2023-10-26 12:27:48 ~6 min android-e2e 🤖apk 📲
✔️ 7e5d9aa #7 2023-10-26 12:28:07 ~7 min android 🤖apk 📲
✔️ 7e5d9aa #7 2023-10-26 12:32:45 ~11 min ios 📱ipa 📲
03c6354 #8 2023-10-26 12:53:49 ~3 min tests 📄log
✔️ 03c6354 #8 2023-10-26 12:56:34 ~6 min android-e2e 🤖apk 📲
✔️ 03c6354 #8 2023-10-26 12:57:52 ~7 min android 🤖apk 📲
✔️ 03c6354 #8 2023-10-26 12:58:48 ~8 min ios 📱ipa 📲
47a9476 #9 2023-10-26 13:07:28 ~3 min tests 📄log
✔️ 47a9476 #9 2023-10-26 13:09:39 ~6 min android-e2e 🤖apk 📲
✔️ 47a9476 #9 2023-10-26 13:09:40 ~6 min android 🤖apk 📲
✔️ 47a9476 #9 2023-10-26 13:12:41 ~9 min ios 📱ipa 📲
5626ae3 #11 2023-10-26 13:40:21 ~4 min tests 📄log
✔️ 5626ae3 #11 2023-10-26 13:43:10 ~7 min ios 📱ipa 📲
✔️ 5626ae3 #11 2023-10-26 13:43:13 ~7 min android 🤖apk 📲
✔️ 5626ae3 #11 2023-10-26 13:43:15 ~7 min android-e2e 🤖apk 📲
✔️ 14a675e #12 2023-10-27 02:03:38 ~5 min android-e2e 🤖apk 📲
✔️ 14a675e #12 2023-10-27 02:06:06 ~7 min android 🤖apk 📲
✔️ 14a675e #12 2023-10-27 02:07:04 ~8 min ios 📱ipa 📲
✔️ 14a675e #12 2023-10-27 02:07:58 ~9 min tests 📄log
✔️ 35570e0 #13 2023-10-27 02:15:15 ~6 min android 🤖apk 📲
✔️ 35570e0 #13 2023-10-27 02:15:24 ~6 min android-e2e 🤖apk 📲
✔️ 35570e0 #13 2023-10-27 02:17:36 ~8 min tests 📄log
✔️ 35570e0 #13 2023-10-27 02:17:36 ~8 min ios 📱ipa 📲
✔️ 93704b3 #14 2023-10-27 13:20:34 ~5 min android-e2e 🤖apk 📲
✔️ 93704b3 #14 2023-10-27 13:20:38 ~5 min android 🤖apk 📲
✔️ 93704b3 #14 2023-10-27 13:28:38 ~13 min ios 📱ipa 📲
✔️ 93704b3 #15 2023-10-30 01:06:59 ~9 min tests 📄log
✔️ 95b5b65 #15 2023-10-30 07:14:22 ~6 min android-e2e 🤖apk 📲
✔️ 95b5b65 #15 2023-10-30 07:15:33 ~7 min android 🤖apk 📲
✔️ 95b5b65 #16 2023-10-30 07:18:35 ~11 min tests 📄log
✔️ 95b5b65 #15 2023-10-30 07:24:06 ~16 min ios 📱ipa 📲
✔️ 68d8c9a #16 2023-10-30 07:46:24 ~6 min android 🤖apk 📲
✔️ 68d8c9a #16 2023-10-30 07:46:34 ~6 min android-e2e 🤖apk 📲
✔️ 68d8c9a #17 2023-10-30 07:50:10 ~10 min tests 📄log
✔️ 68d8c9a #16 2023-10-30 07:54:41 ~15 min ios 📱ipa 📲
✔️ cc23d96 #17 2023-10-30 11:03:56 ~6 min android-e2e 🤖apk 📲
✔️ cc23d96 #17 2023-10-30 11:07:42 ~10 min ios 📱ipa 📲
✔️ cc23d96 #17 2023-10-30 11:08:56 ~11 min android 🤖apk 📲
✔️ cc23d96 #18 2023-10-30 11:09:11 ~11 min tests 📄log
✔️ 2fb58c8 #18 2023-10-30 13:06:47 ~5 min android-e2e 🤖apk 📲
✔️ 2fb58c8 #18 2023-10-30 13:08:40 ~7 min android 🤖apk 📲
✔️ 2fb58c8 #19 2023-10-30 13:10:48 ~9 min tests 📄log
✔️ 2fb58c8 #18 2023-10-30 13:23:02 ~21 min ios 📱ipa 📲
✔️ ea7af09 #20 2023-10-30 15:05:40 ~8 min ios 📱ipa 📲
✔️ ea7af09 #20 2023-10-30 15:08:56 ~11 min android-e2e 🤖apk 📲
✔️ ea7af09 #20 2023-10-30 15:10:43 ~13 min android 🤖apk 📲
✔️ ea7af09 #21 2023-10-30 15:14:41 ~17 min tests 📄log
✔️ 68ae19a #21 2023-10-31 02:50:21 ~5 min android 🤖apk 📲
✔️ 68ae19a #21 2023-10-31 02:52:16 ~7 min android-e2e 🤖apk 📲
✔️ 2958cca #22 2023-10-31 02:59:17 ~6 min android-e2e 🤖apk 📲
✔️ 2958cca #22 2023-10-31 03:00:17 ~7 min android 🤖apk 📲
✔️ 2958cca #23 2023-10-31 03:02:57 ~10 min tests 📄log
✔️ 2958cca #22 2023-10-31 03:13:35 ~20 min ios 📱ipa 📲
✔️ 8b6418f #24 2023-10-31 12:36:54 ~5 min android-e2e 🤖apk 📲
✔️ 8b6418f #24 2023-10-31 12:38:15 ~7 min android 🤖apk 📲
✔️ 8b6418f #25 2023-10-31 12:41:12 ~10 min tests 📄log
✔️ 8b6418f #24 2023-10-31 12:44:54 ~13 min ios 📱ipa 📲
✔️ 941a88b #25 2023-11-01 01:39:36 ~6 min android 🤖apk 📲
✔️ 941a88b #25 2023-11-01 01:39:37 ~6 min android-e2e 🤖apk 📲
✔️ 941a88b #26 2023-11-01 01:42:56 ~9 min tests 📄log
✔️ dcbbb34 #26 2023-11-01 01:50:14 ~6 min android-e2e 🤖apk 📲
✔️ dcbbb34 #26 2023-11-01 01:50:18 ~6 min ios 📱ipa 📲
✔️ dcbbb34 #26 2023-11-01 01:51:24 ~7 min android 🤖apk 📲
✔️ dcbbb34 #27 2023-11-01 01:53:16 ~9 min tests 📄log
✔️ b098f9d #27 2023-11-01 09:13:21 ~6 min android-e2e 🤖apk 📲
✔️ b098f9d #27 2023-11-01 09:14:25 ~7 min android 🤖apk 📲
✔️ b098f9d #28 2023-11-01 09:17:06 ~10 min tests 📄log
✔️ b098f9d #28 2023-11-01 11:10:42 ~5 min ios 📱ipa 📲
✔️ 32689af #28 2023-11-01 12:18:06 ~8 min android 🤖apk 📲
✔️ 32689af #28 2023-11-01 12:19:45 ~10 min android-e2e 🤖apk 📲
✔️ 32689af #29 2023-11-01 12:19:53 ~10 min tests 📄log
✔️ 32689af #29 2023-11-01 12:27:19 ~17 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 503178b #29 2023-11-02 02:11:20 ~6 min android 🤖apk 📲
✔️ 503178b #29 2023-11-02 02:11:32 ~6 min android-e2e 🤖apk 📲
✔️ 503178b #30 2023-11-02 02:13:39 ~8 min tests 📄log
✔️ 503178b #30 2023-11-02 02:18:39 ~13 min ios 📱ipa 📲
✔️ 669440e #31 2023-11-02 06:07:38 ~6 min ios 📱ipa 📲
✔️ 669440e #30 2023-11-02 06:07:55 ~6 min android-e2e 🤖apk 📲
✔️ 669440e #30 2023-11-02 06:09:00 ~7 min android 🤖apk 📲
✔️ 669440e #31 2023-11-02 06:11:01 ~9 min tests 📄log

Copy link
Contributor

@BalogunofAfrica BalogunofAfrica left a comment

Choose a reason for hiding this comment

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

LGTM

@qoqobolo qoqobolo self-assigned this Oct 23, 2023
@pavloburykh
Copy link
Contributor

@yqrashawn thanx for the PR

Issue is fixed but only for 1-1 chat. Still reproducing the bug in case of communities and group chats.

ISSUE 1 Tapping on community/group chat PN leads to "Browse" popup on Android

Steps:

  1. Enable PNs
  2. Generate PN in community/group chat
  3. tap PN
  4. Observe the result

Actual result: "Browse" popup is opened

telegram-cloud-document-2-5309925075145733258.mp4

Expected result: user is redirected to community/group chat

@qoqobolo qoqobolo removed their assignment Oct 23, 2023
@status-im-auto
Copy link
Member

64% of end-end tests have passed

Total executed tests: 45
Failed tests: 13
Expected to fail tests: 3
Passed tests: 29
IDs of failed tests: 703194,702859,703133,702840,703086,702894,702786,702839,702838,702844,702843,702807,702841 
IDs of expected to fail tests: 702732,702731,702808 

Failed tests (13)

Click to expand
  • Rerun failed tests

  • Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_join_send_text_messages_push, id: 702807

    Device 2: `Text` is `Delivered`
    Device 1: Looking for a message by text: Hey, admin!

    critical/chats/test_group_chat.py:97: in test_group_chat_join_send_text_messages_push
        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 Hey, admin! was not received by admin
    



    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133

    # STEP: Check that can remove user from logged out state
    Device 1: Find Button by accessibility id: show-profiles

    critical/chats/test_public_chat_browsing.py:245: in test_restore_multiaccount_with_waku_backup_remove_switch
        self.sign_in.show_profiles_button.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 1: Button by accessibility id: `show-profiles` 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 TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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
    



    2. test_community_one_image_send_reply, id: 702859

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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
    



    3. test_community_emoji_send_copy_paste_reply, id: 702840

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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
    



    4. test_community_mark_all_messages_as_read, id: 703086

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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
    



    5. test_community_contact_block_unblock_offline, id: 702894

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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 
    

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

    6. test_community_message_delete, id: 702839

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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
    



    7. test_community_message_send_check_timestamps_sender_username, id: 702838

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

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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

    8. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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
    



    9. test_community_message_edit, id: 702843

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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
    



    10. test_community_unread_messages_badge, id: 702841

    Test setup failed: critical/chats/test_public_chat_browsing.py:308: 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 TestCommunityMultipleDeviceMergedTwo:

    1. 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:882: 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))]))
     Channel did not open by clicking on a notification with the mention for admin
    E    Channel did not open by clicking on a notification with the mention for the invited member
    



    Device sessions

    Expected to fail tests (3)

    Click to expand

    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:309: 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 (29)

    Click to expand

    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

    4. 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_discovery, id: 703503
    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 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 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

    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_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

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

    @pavloburykh
    Copy link
    Contributor

    ISSUE 1 Tapping on community/group chat PN leads to "Browse" popup on Android

    @yqrashawn please ping me up for re-test when you'll have a chance to fix the issue. Thank you.

    @BalogunofAfrica
    Copy link
    Contributor

    @pavloburykh @yqrashawn is under the weather. Checking it out.

    I have enabled for group chats, still trying to figure out why community links are opening browse

    @yqrashawn
    Copy link
    Contributor Author

    Updates:
    created status-go PR to generate correct deep link status-im/status-go#4198
    the plan is to support both old and new links for now

    although there's a conflict between old and new

    • old cc/ is for community chat
    • new cc/ is for community channel

    they have different info in the URL, so I moved the old cc/ to ccm/
    tested on android real device and it works

    @yqrashawn yqrashawn force-pushed the fix/ulink-change-block-e2e-test branch from d74f564 to 03e922e Compare October 25, 2023 08:48
    @pavloburykh
    Copy link
    Contributor

    Updates: created status-go PR to generate correct deep link status-im/status-go#4198 the plan is to support both old and new links for now

    Thank you @yqrashawn! So once status-go PR is approved we are ready for re-test, correct?

    @yqrashawn
    Copy link
    Contributor Author

    @pavloburykh also this one, code changed a lot so I dismissed the approved state of this PR. And I just find out the share profile URL is broken as well. I might need to fix it in this PR as well.

    I'll put this PR into draft state and reevaluate what needs to be done.

    @yqrashawn yqrashawn marked this pull request as draft October 25, 2023 12:14
    @yqrashawn yqrashawn force-pushed the fix/ulink-change-block-e2e-test branch 2 times, most recently from 75a64cf to 8a32d46 Compare October 25, 2023 12:24
    @pavloburykh
    Copy link
    Contributor

    mobile just ignore this partOw== and only read the community-id after # to open community overview, not community channel

    @yqrashawn just want to understand what is the difference between

    https://status.app/cc/Ow==#zQ3shYSHp7GoiXaauJMnDcjwU2yNjdzpXLosAWapPS4CFxc11
    status-app://cc/Ow==#zQ3shYSHp7GoiXaauJMnDcjwU2yNjdzpXLosAWapPS4CFxc11

    AND

    https://status.app/c/Ow==#zQ3shYSHp7GoiXaauJMnDcjwU2yNjdzpXLosAWapPS4CFxc11
    status-app://c/Ow==#zQ3shYSHp7GoiXaauJMnDcjwU2yNjdzpXLosAWapPS4CFxc11

    Why do we need those https://status.app/cc/ links if they do not open channel but community?

    In your file those links are listed within community channel links section
    Status URL Test 2023-11-01 14-15-09

    @yqrashawn
    Copy link
    Contributor Author

    So basically, what happens are

    1. mobile need to support the new spec at https://github.com/vacp2p/rfc/pull/602/files#diff-497acddee81a09a3aa6fb5a2aa0d0585a3ac9a9628ae0e9d4855b77309a5e7cbR41
    2. there's a discussion and a decision made that mobile don't read things before # and after c-or-cc-or-u/, it's recorded at https://www.notion.so/Usage-of-link-data-7cf6c9e2a9554761baae9a1ba84e70c2?pvs=4
    3. PN failed Tapping on PN leads to "Browse" popup on Android #17718. Because there's an old format /cc/<0x-community-pubkey><community-channel-id>/<0x-community-pubkey> and I removed support for this
    4. to keep PN working, I add support for /cc/<community-channel-id>#<serialized-community-id(starts with z, not 0x)> and use it for PN

    that's why there are both /c-or-cc/<encoded community or community-channel data>#<serialized-community-id> and they both jump to community overview @pavloburykh

    @pavloburykh
    Copy link
    Contributor

    @yqrashawn are we leaving ISSUE 4 as a followup?

    @yqrashawn
    Copy link
    Contributor Author

    @pavloburykh Yes. I can reproduce it but have some trouble debug it. I'll look into it tomorrow. Can you create an issue for it?

    @pavloburykh
    Copy link
    Contributor

    @pavloburykh Yes. I can reproduce it but have some trouble debug it. I'll look into it tomorrow. Can you create an issue for it?

    Sure! I will create a followup once we merge this PR. I am waiting for e2e run and after that will move this PR to merge.

    @status-im-auto
    Copy link
    Member

    84% of end-end tests have passed

    Total executed tests: 45
    Failed tests: 3
    Expected to fail tests: 4
    Passed tests: 38
    
    IDs of failed tests: 702786,702859,702846 
    
    IDs of expected to fail tests: 702731,702808,702783,702732 
    

    Failed tests (3)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityOneDeviceMerged:

    1. test_community_navigate_to_channel_when_relaunch, id: 702846

    ## Signed in successfully!
    Device 1: Looking for a message by text: some_text

    critical/chats/test_public_chat_browsing.py:81: in test_community_navigate_to_channel_when_relaunch
        self.drivers[0].fail("Not navigated to channel view after reopening app")
    base_test_case.py:179: in fail
        pytest.fail('Device %s: %s' % (self.number, text))
     Device 1: Not navigated to channel view after reopening app
    



    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. 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:897: 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 sender
    E    Edited message is not shown correctly for the (receiver) admin
    



    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. 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
    Device 2: Element EmojisNumber text is equal to 1

    critical/chats/test_public_chat_browsing.py:500: 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

    Expected to fail tests (4)

    Click to expand

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

    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:617: 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 status was not changed to Delivered, it's Sent after back up online! 
    

    [[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 (38)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    3. test_community_undo_delete_message, id: 702869
    Device sessions

    4. test_community_mute_community_and_channel, id: 703382
    Device sessions

    5. test_community_discovery, id: 703503
    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_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 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 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_message_edit, id: 702843
    Device sessions

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

    1. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    2. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    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

    @yqrashawn thank you for the PR and all the additional explanations. Ready for merge.

    @yqrashawn yqrashawn force-pushed the fix/ulink-change-block-e2e-test branch from 503178b to 669440e Compare November 2, 2023 06:00
    @yqrashawn
    Copy link
    Contributor Author

    rebase and update status-go version, waiting for ci

    @yqrashawn yqrashawn changed the title fix(universal-link): support more new link format, handle old link format fix(universal-link): more new link format, handle old link format Nov 2, 2023
    @yqrashawn yqrashawn merged commit 859cb19 into develop Nov 2, 2023
    6 checks passed
    @yqrashawn yqrashawn deleted the fix/ulink-change-block-e2e-test branch November 2, 2023 07:31
    yevh-berdnyk pushed a commit that referenced this pull request Dec 8, 2023
    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
    6 participants