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

[#17965] Create token component #18018

Merged
merged 10 commits into from
Dec 8, 2023
Merged

Conversation

ulisesmac
Copy link
Contributor

fixes #17965

Summary

This PR creates a new token component, a similar abstraction to our icon component.

Everytime we want to draw a token, we should use this new implementation.

Features

This new component is defined in quo.components.token and is also available in the quo library (same as icon component). I created it to be very flexible, since it'll replace existing token images in the app.

Receives:

prop description
size it can be a number or a keyword, e.g. :size-24, :size-2000 or just 2000
token a token symbol in any format: e.g. :eth, :ETH, "ETH", "eth" or even :my-token/eTh, all of them resolve to the same.
style extra styles to apply
image-source if provided, then we don't need token, the component will use this value, useful to render b64 strings. The issue: #17873 will benefit from it.

Changes

Besides adding this component, it is being used in all places in the app where we rendered a token image.

So, inside the quo library the new component is being used in:

  • token-input
  • network-amount
  • token-tag
  • summary-tag
  • context-tag
  • token-value
  • token-network
  • preview-list

All of these components received an image-source for the token to render, in this PR their API has been changed since they don't need that image-source anymore; it also means every component that used any of these components has also been updated in this PR

Also the usages of these components outside quo library have been updated.

Review notes

Some additional small changes were performed, just small refactors, I'll mention what they are in code comments below.

QA Testing notes

Please test all token images in the app. All of them should render exactly as before. Keep in mind this issue is not solving #17873 , but it can be solved after this one.

Platforms

  • Android
  • iOS

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Nov 29, 2023

Jenkins Builds

Click to see older builds (41)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ c942524 #1 2023-11-29 01:27:28 ~6 min android-e2e 🤖apk 📲
✔️ c942524 #1 2023-11-29 01:27:50 ~6 min android 🤖apk 📲
✔️ c942524 #1 2023-11-29 01:31:29 ~10 min tests 📄log
✔️ c942524 #1 2023-11-29 01:34:04 ~13 min ios 📱ipa 📲
✔️ 3562047 #2 2023-11-29 01:41:10 ~6 min ios 📱ipa 📲
✔️ 3562047 #2 2023-11-29 01:44:09 ~9 min android-e2e 🤖apk 📲
✔️ 3562047 #2 2023-11-29 01:44:20 ~9 min android 🤖apk 📲
✔️ 3562047 #2 2023-11-29 01:46:45 ~11 min tests 📄log
✔️ c7108cc #3 2023-12-01 00:12:52 ~6 min ios 📱ipa 📲
✔️ c7108cc #3 2023-12-01 00:12:55 ~6 min android 🤖apk 📲
✔️ c7108cc #3 2023-12-01 00:14:58 ~8 min android-e2e 🤖apk 📲
c7108cc #3 2023-12-01 00:17:19 ~10 min tests 📄log
99197a0 #4 2023-12-01 00:31:21 ~30 sec ios 📄log
99197a0 #4 2023-12-01 00:31:31 ~41 sec android 📄log
99197a0 #4 2023-12-01 00:31:31 ~41 sec android-e2e 📄log
99197a0 #4 2023-12-01 00:32:42 ~1 min tests 📄log
9e83d34 #5 2023-12-01 00:34:04 ~30 sec ios 📄log
9e83d34 #5 2023-12-01 00:34:10 ~38 sec android-e2e 📄log
9e83d34 #5 2023-12-01 00:34:15 ~39 sec android 📄log
9e83d34 #5 2023-12-01 00:35:24 ~1 min tests 📄log
✔️ b86249d #6 2023-12-01 00:48:28 ~10 min android-e2e 🤖apk 📲
✔️ b86249d #6 2023-12-01 00:48:42 ~10 min android 🤖apk 📲
b86249d #6 2023-12-01 00:49:55 ~11 min tests 📄log
✔️ b86249d #6 2023-12-01 00:51:25 ~13 min ios 📱ipa 📲
5e7ad78 #8 2023-12-04 23:42:29 ~2 min tests 📄log
✔️ 5e7ad78 #8 2023-12-04 23:46:05 ~6 min android-e2e 🤖apk 📲
✔️ 5e7ad78 #8 2023-12-04 23:46:09 ~6 min android 🤖apk 📲
✔️ 5e7ad78 #8 2023-12-04 23:52:50 ~12 min ios 📱ipa 📲
84f0c73 #9 2023-12-06 15:25:21 ~3 min tests 📄log
✔️ 84f0c73 #9 2023-12-06 15:28:48 ~6 min ios 📱ipa 📲
✔️ 84f0c73 #9 2023-12-06 15:29:11 ~6 min android 🤖apk 📲
✔️ 84f0c73 #9 2023-12-06 15:30:06 ~7 min android-e2e 🤖apk 📲
✔️ 84f0c73 #10 2023-12-07 11:24:51 ~6 min ios 📱ipa 📲
1cbe067 #10 2023-12-07 11:40:04 ~3 min tests 📄log
✔️ 1cbe067 #10 2023-12-07 11:43:20 ~6 min android-e2e 🤖apk 📲
✔️ 1cbe067 #10 2023-12-07 11:43:44 ~7 min android 🤖apk 📲
✔️ 1cbe067 #11 2023-12-07 11:43:55 ~7 min ios 📱ipa 📲
✔️ c0d04aa #11 2023-12-08 04:22:48 ~5 min android-e2e 🤖apk 📲
✔️ c0d04aa #11 2023-12-08 04:22:54 ~6 min android 🤖apk 📲
✔️ c0d04aa #12 2023-12-08 04:23:12 ~6 min ios 📱ipa 📲
c0d04aa #11 2023-12-08 04:26:58 ~9 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 19799ad #12 2023-12-08 19:17:36 ~5 min android-e2e 🤖apk 📲
✔️ 19799ad #12 2023-12-08 19:17:37 ~5 min android 🤖apk 📲
✔️ 19799ad #13 2023-12-08 19:18:25 ~6 min ios 📱ipa 📲
19799ad #12 2023-12-08 19:21:38 ~9 min tests 📄log
✔️ ab3c45e #13 2023-12-08 19:47:45 ~5 min android-e2e 🤖apk 📲
✔️ ab3c45e #13 2023-12-08 19:47:52 ~5 min android 🤖apk 📲
✔️ ab3c45e #13 2023-12-08 19:51:46 ~9 min tests 📄log
✔️ ab3c45e #14 2023-12-08 19:53:26 ~11 min ios 📱ipa 📲

@ulisesmac ulisesmac force-pushed the 17965-create-token-component branch from c942524 to 3562047 Compare November 29, 2023 01:34
@ulisesmac ulisesmac force-pushed the 17965-create-token-component branch 2 times, most recently from 9e83d34 to b86249d Compare December 1, 2023 00:37
@ulisesmac
Copy link
Contributor Author

ulisesmac commented Dec 1, 2023

@J-Son89 I've pushed the branch with the following changes:

  • Moved the compone t to quo.components.utilities.token.view.
  • All token files are being loaded on the app startup, using a macro with a similar apporach to our icons. There're two files:
    quo.components.utilities.token.loader in clj and cljs to load the files.
  • The function resources/get-token has been removed along with its js/require map.

@ilmotta
The schema has been added 👍 it's more flexible.

@yqrashawn
:snt has been removed as default value for :token.

Thanks for your reviews 😃

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.

Well done 🚀, LGTM :)

Copy link
Member

@smohamedjavid smohamedjavid left a comment

Choose a reason for hiding this comment

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

Nice work! @ulisesmac 🚀

@@ -378,6 +379,9 @@
(def text-combinations quo.components.text-combinations.view/view)
(def channel-name quo.components.text-combinations.channel-name.view/view)

;;;; Utilities
Copy link
Contributor

Choose a reason for hiding this comment

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

can you leave a comment here - something like "outside of design system" 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@status-im status-im deleted a comment from status-im-auto Dec 6, 2023
@churik
Copy link
Member

churik commented Dec 6, 2023

I checked this on all tokens that we have for our testing purposes, no difference - the only difference that I noticed is in sorting, take a look:
IMAGE 2023-12-06 18:08:52

Also, I checked components from the description + #17873
It fixes #17873

IMAGE 2023-12-06 18:10:19
Several questions:

  1. Is the issue with sorting related to your PR or it is just random everywhere?
  2. What about the default fallback icon for a token (when no icon is set)?
  3. Design review should be performed on this PR or not?

@status-im-auto
Copy link
Member

58% of end-end tests have passed

Total executed tests: 48
Failed tests: 14
Expected to fail tests: 6
Passed tests: 28
Not executed tests: 1
IDs of not executed tests: 704615 
IDs of failed tests: 702845,702947,702786,702851,704613,702809,702813,702948,703629,703133,702850,703382,702936,702777 
IDs of expected to fail tests: 702894,702731,702808,702846,702732,703503 

Not executed tests (1)

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

    Click to expand
  • Rerun failed tests

  • Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    activity_center/test_activity_center.py:211: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    2. test_navigation_jump_to, id: 702936

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    activity_center/test_activity_center.py:211: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    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:274: 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...UxXqE was not restored as a contact from waku backup!
    



    Device sessions

    2. test_community_mute_community_and_channel, id: 703382

    Device 1: Getting cats channel element in community
    Device 1: Looking for chat: 'cats'

    critical/chats/test_public_chat_browsing.py:143: in test_community_mute_community_and_channel
        self.community_view.get_channel(self.channel_name).long_press_element()
    ../views/base_element.py:311: in long_press_element
        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='channel-list-item']//*[starts-with(@text,'# cats')]/..` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    critical/chats/test_public_chat_browsing.py:778: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    2. test_community_mentions_push_notification, id: 702786

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    critical/chats/test_public_chat_browsing.py:778: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    3. test_community_markdown_support, id: 702809

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    critical/chats/test_public_chat_browsing.py:778: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    4. test_community_hashtag_links_to_community_channels, id: 702948

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    critical/chats/test_public_chat_browsing.py:778: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str' 
    

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

    5. test_community_join_when_node_owner_offline, id: 703629

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    critical/chats/test_public_chat_browsing.py:778: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_push_emoji, id: 702813

    Device 1: Tap on found: Button
    # STEP: Check Device 1 is actually on chat

    critical/chats/test_1_1_public_chats.py:358: in test_1_1_chat_push_emoji
        self.device_1.driver.fail("Failed to open chat view after tap on PN")
    base_test_case.py:179: in fail
        pytest.fail('Device %s: %s' % (self.number, text))
     Device 1: Failed to open chat view after tap on PN
    



    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    activity_center/test_activity_center.py:15: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    2. test_activity_center_contact_request_decline, id: 702850

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    activity_center/test_activity_center.py:15: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    Device sessions

    3. test_add_contact_field_validation, id: 702777

    Test setup failed: base_test_case.py:316: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1
     '_asyncio.Future' object has no attribute 'session_id'
    
    During handling of the above exception, another exception occurred:
    activity_center/test_activity_center.py:15: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:322: in create_shared_drivers
        test_suite_data.current_test.testruns[-1].error += str(e)
    E   TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
    



    Class TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613

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

    critical/test_deep_and_universal_links.py:56: in test_links_open_universal_links_from_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))]))
     Profile was not opened by the profile url https://status.app/u#zQ3shVVxZMwLVEQvuu1KF6h4D2mzVyCC4F4mHLZm5dz5XU1aa
    E    Closed community was not requested to join by the url https://status.app/c/G8EAAGTiXKuwNbVVAu0GNLD-XzX4oz_E8oC1-7qSLikaTnCuG9Ag13ZgQKrMd8En9Qcpuaj3Qx3mfZ1atZzH8Zw-x_sFJ_MDv0P_7YfqoV-pNr3V4dsza-jVk41GaCGWasJb92Oer8qggaoNWf0tYCgSH19VonXciKPUz3ITdgke#zQ3shbmfT3hvh4mKa1v6uAjjyztQEroh8Mfn6Ckegjd7LT3XK
    



    Device sessions

    Expected to fail tests (6)

    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 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_navigate_to_channel_when_relaunch, id: 702846

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Issue #18075]]

    2. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

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

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_contact_block_unblock_offline, id: 702894

    Device 1: Find ProfileSendMessageButton by accessibility id: Chat-item-button
    Device 1: Sending message 'piy'

    critical/chats/test_public_chat_browsing.py:741: 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))]))
     Chat with unblocked user was not enabled after 1 minute 
    

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

    Device sessions

    Passed tests (28)

    Click to expand

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    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

    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 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_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 TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    3. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    4. test_community_unread_messages_badge, id: 702841
    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_one_image_send_reply, id: 702859
    Device sessions

    8. test_community_message_edit, id: 702843
    Device sessions

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

    1. test_links_deep_links, id: 702775
    Device sessions

    2. test_links_open_universal_links_from_other_apps, id: 704614
    Device sessions

    @churik churik force-pushed the 17965-create-token-component branch from 84f0c73 to 1cbe067 Compare December 7, 2023 11:36
    @status-im-auto
    Copy link
    Member

    69% of end-end tests have passed

    Total executed tests: 49
    Failed tests: 9
    Expected to fail tests: 6
    Passed tests: 34
    
    IDs of failed tests: 702958,703202,702807,702808,703629,703133,702869,703297,703495 
    
    IDs of expected to fail tests: 702894,702731,702948,702846,702732,703503 
    

    Failed tests (9)

    Click to expand
  • Rerun failed tests

  • Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202
    Test setup failed: critical/chats/test_group_chat.py:73: in prepare_devices
        self.chats[0].send_message(self.message_before_adding)
    ../views/chat_view.py:1003: 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
    



    2. test_group_chat_join_send_text_messages_push, id: 702807

    ## Group chat wxvcvlp is created successfully!
    Device 1: Sending message 'message before adding new user'

    Test setup failed: critical/chats/test_group_chat.py:73: in prepare_devices
        self.chats[0].send_message(self.message_before_adding)
    ../views/chat_view.py:1003: 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
    



    Device sessions

    3. test_group_chat_offline_pn, id: 702808

    Test setup failed: critical/chats/test_group_chat.py:73: in prepare_devices
        self.chats[0].send_message(self.message_before_adding)
    ../views/chat_view.py:1003: 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 
    

    [[Data delivery issue]]

    4. test_group_chat_send_image_save_and_share, id: 703297

    Test setup failed: critical/chats/test_group_chat.py:73: in prepare_devices
        self.chats[0].send_message(self.message_before_adding)
    ../views/chat_view.py:1003: 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
    



    5. test_group_chat_mute_chat, id: 703495

    Test setup failed: critical/chats/test_group_chat.py:73: in prepare_devices
        self.chats[0].send_message(self.message_before_adding)
    ../views/chat_view.py:1003: 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
    



    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958

    Device 2: Joining community
    Device 2: Find Button by accessibility id: show-request-to-join-screen-button

    activity_center/test_activity_center.py:458: in test_activity_center_admin_notification_accept_swipe
        self.community_2.join_community(open_community=False)
    ../views/chat_view.py:427: in join_community
        self.join_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: `show-request-to-join-screen-button` 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_join_when_node_owner_offline, id: 703629

    Device 2: Looking for community: 'open community'
    Device 2: Click until Text by accessibility id: community-description-text will be presented

    critical/chats/test_public_chat_browsing.py:1146: 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))]))
     Text "You joined “closed community”" in shown toast element doesn't match expected "You joined “open community”"
    



    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:275: 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...UxXqE was not restored as a contact from waku backup!
    



    Device sessions

    2. test_community_undo_delete_message, id: 702869

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

    critical/chats/test_public_chat_browsing.py:112: in test_community_undo_delete_message
        self.channel.element_by_text("Undo").click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py:94: in click
        self._execute(Command.CLICK_ELEMENT)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py:395: in _execute
        return self._parent.execute(command, params)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:345: in execute
        self.error_handler.check_response(response)
    /home/jenkins/.local/lib/python3.10/site-packages/appium/webdriver/errorhandler.py:122: in check_response
        raise exception_class(msg=message, stacktrace=format_stacktrace(stacktrace))
     The element 'By.xpath: //*[@text="Undo"]' does not exist in DOM anymore; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
    E   Stacktrace:
    E   io.appium.uiautomator2.common.exceptions.StaleElementReferenceException: The element 'By.xpath: //*[@text="Undo"]' does not exist in DOM anymore
    E   	at io.appium.uiautomator2.model.ElementsCache.restore(ElementsCache.java:117)
    E   	at io.appium.uiautomator2.model.ElementsCache.get(ElementsCache.java:153)
    E   	at io.appium.uiautomator2.handler.Click.safeHandle(Click.java:36)
    E   	at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:59)
    E   	at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:277)
    E   	at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:271)
    E   	at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
    E   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
    E   	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
    E   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
    E   	at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
    E   	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
    E   	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
    E   	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
    E   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
    E   	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
    E   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
    E   	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
    E   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
    E   	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
    E   	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
    E   	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
    E   	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)
    E   	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)
    E   	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
    E   	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
    E   	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
    E   	at java.lang.Thread.run(Thread.java:919)
    



    Device sessions

    Expected to fail tests (6)

    Click to expand

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_hashtag_links_to_community_channels, id: 702948

    Device 2: Find Text by xpath: //android.view.ViewGroup[@content-desc='chat-item']//android.widget.TextView[contains(@text,'#cats')]
    Device 2: Looking for a message by text: it is just a message text

    critical/chats/test_public_chat_browsing.py:1079: in test_community_hashtag_links_to_community_channels
        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))]))
     Receiver was not navigated to the cats channel
    E    Sender was not navigated to the cats channel 
    

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

    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_pin_messages, id: 702732

    Test is not run, e2e blocker  
    

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

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_contact_block_unblock_offline, id: 702894

    Device 1: Find ProfileSendMessageButton by accessibility id: Chat-item-button
    Device 1: Sending message 'piy'

    critical/chats/test_public_chat_browsing.py:742: 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))]))
     Chat with unblocked user was not enabled after 1 minute 
    

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

    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_navigate_to_channel_when_relaunch, id: 702846

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Issue #18075]]

    2. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

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

    Passed tests (34)

    Click to expand

    Class TestDeepLinksOneDevice:

    1. test_links_deep_links, id: 702775
    Device sessions

    2. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    3. test_links_open_universal_links_from_other_apps, id: 704614
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    3. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_markdown_support, id: 702809
    Device sessions

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

    1. test_activity_center_mentions, id: 702957
    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 TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    3. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    4. test_community_unread_messages_badge, id: 702841
    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_edit_delete_message_when_offline, id: 704615
    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 TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_community_mute_community_and_channel, id: 703382
    Device sessions

    @status-im-auto
    Copy link
    Member

    84% of end-end tests have passed

    Total executed tests: 49
    Failed tests: 1
    Expected to fail tests: 7
    Passed tests: 41
    
    IDs of failed tests: 703133 
    
    IDs of expected to fail tests: 702894,702731,702808,702948,702846,702732,703503 
    

    Failed tests (1)

    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:275: 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...UxXqE was not restored as a contact from waku backup!
    



    Device sessions

    Expected to fail tests (7)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_navigate_to_channel_when_relaunch, id: 702846

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Issue #18075]]

    2. 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: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 TestCommunityMultipleDeviceMergedTwo:

    1. test_community_hashtag_links_to_community_channels, id: 702948

    Device 2: Find Text by xpath: //android.view.ViewGroup[@content-desc='chat-item']//android.widget.TextView[contains(@text,'#cats')]
    Device 2: Looking for a message by text: it is just a message text

    critical/chats/test_public_chat_browsing.py:1079: in test_community_hashtag_links_to_community_channels
        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))]))
     Receiver was not navigated to the cats channel
    E    Sender was not navigated to the cats channel 
    

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

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

    1. test_community_contact_block_unblock_offline, id: 702894

    Device 1: Find ProfileSendMessageButton by accessibility id: Chat-item-button
    Device 1: Sending message 'piy'

    critical/chats/test_public_chat_browsing.py:742: 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))]))
     Chat with unblocked user was not enabled after 1 minute 
    

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

    Device sessions

    Passed tests (41)

    Click to expand

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    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 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_undo_delete_message, id: 702869
    Device sessions

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

    1. test_community_leave, id: 702845
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_markdown_support, id: 702809
    Device sessions

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

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    3. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    4. test_community_unread_messages_badge, id: 702841
    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_edit_delete_message_when_offline, id: 704615
    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 TestDeepLinksOneDevice:

    1. test_links_deep_links, id: 702775
    Device sessions

    2. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    3. test_links_open_universal_links_from_other_apps, id: 704614
    Device sessions

    @ulisesmac
    Copy link
    Contributor Author

    @churik
    Thanks for the review, I was a little busy with other stuff, so I'll reply soon.

    @ulisesmac
    Copy link
    Contributor Author

    ulisesmac commented Dec 8, 2023

    Hey @churik

    1. Is the issue with sorting related to your PR or it is just random everywhere?

    This is not related to my PR, but I checked the code and we are not sorting those tokens, so I'd say that right now, yes, it's random.

    1. What about the default fallback icon for a token (when no icon is set)?

    I asked to designers, and they said there's still no design for it, when it exists, we can add it 👍

    1. Design review should be performed on this PR or not?

    No, we don't need it :) It's just a code change related.

    This implementation supports b64 strings to be passed to the token component and also makes it easier to get the image of a token, so I can understand it's fixing

    But I'd say to properly ensure it's working is better to keep the issue open and address it separately.
    @mohsen-ghafouri has it assigned, but I could also take it and check what's happening.

    @mohsen-ghafouri wdyt?

    @ulisesmac ulisesmac force-pushed the 17965-create-token-component branch from 1cbe067 to c0d04aa Compare December 8, 2023 04:16
    @mohsen-ghafouri
    Copy link
    Contributor

    @ulisesmac I can see you already resolved it and we just need to check it for custom token. feel free and reassign that issue to yourself if you want. :)

    @ulisesmac ulisesmac force-pushed the 17965-create-token-component branch from 19799ad to ab3c45e Compare December 8, 2023 19:41
    @ulisesmac ulisesmac merged commit 0ba057a into develop Dec 8, 2023
    6 checks passed
    @ulisesmac ulisesmac deleted the 17965-create-token-component branch December 8, 2023 20:13
    yevh-berdnyk pushed a commit that referenced this pull request Dec 8, 2023
    * Create token component
    
    * Replace token images by new token component
    
    The new component is being used in the following components:
     - token-input
     - network-amount
     - token-tag
     - summary-tag
     - context-tag
     - token-value
     - token-network
     - preview-list
    
    * Rename token image file: eth-token -> eth
    
    * Remove resources/get-token function
    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.

    Create token component
    10 participants