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

Wallet - Implement Network Configuration #17840 #17862

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

Rende11
Copy link
Collaborator

@Rende11 Rende11 commented Nov 9, 2023

Fixes #17840

Summary

Account network configuration

This pr adds the network configuration page. This can accessed by going to any wallet account page (new UI)
and opening the edit account option.

Once there you can edit network configuration. (These changes will eventually be reflected in many parts of the application. However in this pr these changes are persisted in the db and can be visualised on the account page in the form of the full address name which will optionally include "eth", "arb1" (and/or) "opt".
For this pr we can test that this is working as expected and that these changes are persisted on log in/log out. Additionally the network configuration page should load correctly with the previously selected network configuration. By default they will all be selected.
See the video below
https://github.com/status-im/status-mobile/assets/10757633/318f2249-0a6f-404f-a5a8-c2ac64f17f69

@status-im-auto
Copy link
Member

status-im-auto commented Nov 9, 2023

Jenkins Builds

Click to see older builds (77)
Commit #️⃣ Finished (UTC) Duration Platform Result
51fe6b5 #1 2023-11-09 09:40:29 ~2 min tests 📄log
✔️ 51fe6b5 #1 2023-11-09 09:43:42 ~5 min android-e2e 🤖apk 📲
✔️ 51fe6b5 #1 2023-11-09 09:43:48 ~6 min android 🤖apk 📲
✔️ 51fe6b5 #1 2023-11-09 09:49:01 ~11 min ios 📱ipa 📲
008c206 #2 2023-11-09 15:43:18 ~13 min tests 📄log
✔️ 008c206 #2 2023-11-09 15:45:51 ~15 min ios 📱ipa 📲
✔️ 008c206 #2 2023-11-09 15:47:35 ~17 min android 🤖apk 📲
✔️ 008c206 #2 2023-11-09 15:47:37 ~17 min android-e2e 🤖apk 📲
940d5a5 #3 2023-11-10 18:31:59 ~2 min tests 📄log
✔️ 940d5a5 #3 2023-11-10 18:35:23 ~6 min android 🤖apk 📲
✔️ 940d5a5 #3 2023-11-10 18:35:29 ~6 min android-e2e 🤖apk 📲
✔️ 940d5a5 #3 2023-11-10 18:39:31 ~10 min ios 📱ipa 📲
baa8069 #4 2023-11-10 19:21:51 ~1 min tests 📄log
✔️ baa8069 #4 2023-11-10 19:25:23 ~5 min ios 📱ipa 📲
✔️ baa8069 #4 2023-11-10 19:26:09 ~6 min android-e2e 🤖apk 📲
✔️ baa8069 #4 2023-11-10 19:26:31 ~6 min android 🤖apk 📲
b5b9571 #5 2023-11-10 19:32:57 ~2 min tests 📄log
✔️ b5b9571 #5 2023-11-10 19:36:05 ~5 min ios 📱ipa 📲
✔️ b5b9571 #5 2023-11-10 19:36:44 ~6 min android-e2e 🤖apk 📲
✔️ b5b9571 #5 2023-11-10 19:37:16 ~6 min android 🤖apk 📲
3cfc1a9 #6 2023-11-11 21:36:26 ~1 min tests 📄log
✔️ 3cfc1a9 #6 2023-11-11 21:39:53 ~5 min ios 📱ipa 📲
✔️ 3cfc1a9 #6 2023-11-11 21:40:40 ~6 min android-e2e 🤖apk 📲
✔️ 3cfc1a9 #6 2023-11-11 21:40:49 ~6 min android 🤖apk 📲
0a8a4ab #7 2023-11-13 20:57:40 ~1 min tests 📄log
f7680bf #8 2023-11-13 20:59:43 ~1 min tests 📄log
✔️ f7680bf #8 2023-11-13 21:03:06 ~5 min ios 📱ipa 📲
✔️ f7680bf #8 2023-11-13 21:03:15 ~5 min android 🤖apk 📲
✔️ f7680bf #8 2023-11-13 21:03:27 ~5 min android-e2e 🤖apk 📲
✔️ 2717291 #9 2023-11-13 21:31:49 ~6 min ios 📱ipa 📲
✔️ 2717291 #9 2023-11-13 21:31:50 ~6 min android-e2e 🤖apk 📲
✔️ 2717291 #9 2023-11-13 21:32:01 ~6 min android 🤖apk 📲
✔️ 2717291 #9 2023-11-13 21:34:33 ~8 min tests 📄log
✔️ db00efd #10 2023-11-16 15:34:40 ~5 min android-e2e 🤖apk 📲
✔️ db00efd #10 2023-11-16 15:37:51 ~8 min android 🤖apk 📲
✔️ db00efd #10 2023-11-16 15:38:32 ~9 min tests 📄log
✔️ db00efd #10 2023-11-16 15:41:06 ~12 min ios 📱ipa 📲
✔️ 93837af #11 2023-11-16 16:14:48 ~5 min ios 📱ipa 📲
✔️ 93837af #11 2023-11-16 16:14:56 ~5 min android-e2e 🤖apk 📲
✔️ 93837af #11 2023-11-16 16:14:57 ~5 min android 🤖apk 📲
✔️ 93837af #11 2023-11-16 16:17:48 ~8 min tests 📄log
74674c0 #13 2023-11-16 17:56:05 ~2 min tests 📄log
✔️ 74674c0 #13 2023-11-16 17:58:44 ~5 min ios 📱ipa 📲
✔️ 74674c0 #13 2023-11-16 17:58:45 ~5 min android-e2e 🤖apk 📲
✔️ 74674c0 #13 2023-11-16 17:59:31 ~6 min android 🤖apk 📲
✔️ 3c5992b #15 2023-11-16 18:17:50 ~5 min android-e2e 🤖apk 📲
✔️ 3c5992b #15 2023-11-16 18:21:52 ~9 min android 🤖apk 📲
✔️ 3c5992b #15 2023-11-16 18:22:10 ~9 min tests 📄log
✔️ 3c5992b #15 2023-11-16 18:28:33 ~16 min ios 📱ipa 📲
✔️ c7566f7 #17 2023-11-23 13:00:27 ~6 min android 🤖apk 📲
✔️ c7566f7 #17 2023-11-23 13:03:33 ~9 min android-e2e 🤖apk 📲
✔️ c7566f7 #17 2023-11-23 13:05:41 ~11 min tests 📄log
✔️ c7566f7 #17 2023-11-23 13:06:47 ~12 min ios 📱ipa 📲
✔️ 7056d5c #18 2023-11-28 20:16:30 ~6 min android-e2e 🤖apk 📲
✔️ 7056d5c #18 2023-11-28 20:17:09 ~7 min android 🤖apk 📲
✔️ 7056d5c #18 2023-11-28 20:20:38 ~10 min tests 📄log
✔️ 7056d5c #18 2023-11-28 20:21:44 ~11 min ios 📱ipa 📲
✔️ ad65546 #19 2023-12-04 13:10:33 ~7 min android-e2e 🤖apk 📲
✔️ ad65546 #19 2023-12-04 13:14:29 ~11 min ios 📱ipa 📲
✔️ ad65546 #19 2023-12-04 13:14:32 ~11 min android 🤖apk 📲
✔️ ad65546 #19 2023-12-04 13:16:39 ~13 min tests 📄log
521befd #20 2023-12-07 10:00:08 ~3 min tests 📄log
✔️ 521befd #20 2023-12-07 10:03:16 ~6 min android-e2e 🤖apk 📲
✔️ 521befd #20 2023-12-07 10:03:34 ~6 min android 🤖apk 📲
✔️ 521befd #20 2023-12-07 10:10:15 ~13 min ios 📱ipa 📲
e182225 #22 2023-12-07 18:50:45 ~3 min tests 📄log
✔️ e182225 #22 2023-12-07 18:53:40 ~6 min android-e2e 🤖apk 📲
✔️ e182225 #22 2023-12-07 18:54:16 ~6 min android 🤖apk 📲
✔️ e182225 #22 2023-12-07 18:54:24 ~6 min ios 📱ipa 📲
3f89c3a #23 2023-12-11 13:33:48 ~3 min tests 📄log
✔️ 3f89c3a #23 2023-12-11 13:37:23 ~6 min android 🤖apk 📲
✔️ 3f89c3a #23 2023-12-11 13:37:51 ~7 min android-e2e 🤖apk 📲
✔️ 3f89c3a #23 2023-12-11 13:45:21 ~14 min ios 📱ipa 📲
✔️ 7ccdaa8 #26 2023-12-11 21:29:24 ~6 min android-e2e 🤖apk 📲
✔️ 7ccdaa8 #26 2023-12-11 21:29:47 ~6 min android 🤖apk 📲
✔️ 7ccdaa8 #26 2023-12-11 21:37:21 ~14 min ios 📱ipa 📲
✔️ 7ccdaa8 #27 2023-12-12 08:29:26 ~4 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 6c90f43 #28 2023-12-12 12:52:08 ~11 min tests 📄log
✔️ 6c90f43 #27 2023-12-12 12:55:12 ~14 min android-e2e 🤖apk 📲
✔️ 6c90f43 #27 2023-12-12 12:55:19 ~14 min android 🤖apk 📲
✔️ 6c90f43 #27 2023-12-12 12:56:53 ~15 min ios 📱ipa 📲
✔️ 01d5767 #29 2023-12-12 13:09:55 ~4 min tests 📄log
✔️ 01d5767 #28 2023-12-12 13:11:43 ~6 min ios 📱ipa 📲
✔️ 01d5767 #28 2023-12-12 13:12:11 ~6 min android-e2e 🤖apk 📲
✔️ 01d5767 #28 2023-12-12 13:13:06 ~7 min android 🤖apk 📲

@flexsurfer
Copy link
Member

The demo looks strange, icons are blinking, seems like they re-rendered but they shouldn't be

@Rende11
Copy link
Collaborator Author

Rende11 commented Nov 9, 2023

The demo looks strange, icons are blinking, seems like they re-rendered but they shouldn't be

I noticed this problem, but I don't know how to fix it yet

@Rende11 Rende11 force-pushed the wallet/network-configuration branch from 008c206 to 940d5a5 Compare November 10, 2023 18:28
@Rende11 Rende11 marked this pull request as ready for review November 11, 2023 11:54
@Rende11
Copy link
Collaborator Author

Rende11 commented Nov 11, 2023

Looks like "blinking" - component issue (or I use it in wrong way)
I've checked in components sandbox:

Simulator.Screen.Recording.-.iPhone.13.-.2023-11-11.at.18.08.59.mp4
selections (reagent/atom #{0 1 2 3 4}) 

(defn create-item-array
  [n selections!]
  (vec
   (for [i (range n)]
     {:title       (str "Item " i)
      :subtitle    "subtitle"
      :action      :selector
      :action-props {:type     :checkbox
                     :checked? (contains? @selections! i)
                     :on-change #(if (contains? @selections! i)
                                   (swap! selections! disj i)
                                   (swap! selections! conj i))}
      :image       :icon-avatar
      :image-props  {:icon (resources/get-mock-image :diamond)
                     :size :size-20}
      :image-size  32})))

@Rende11 Rende11 force-pushed the wallet/network-configuration branch 2 times, most recently from 0a8a4ab to f7680bf Compare November 13, 2023 20:57
@ulisesmac
Copy link
Contributor

ulisesmac commented Nov 14, 2023

Looks like "blinking" - component issue (or I use it in wrong way) I've checked in components sandbox:
Simulator.Screen.Recording.-.iPhone.13.-.2023-11-11.at.18.08.59.mp4

selections (reagent/atom #{0 1 2 3 4}) 

(defn create-item-array
  [n selections!]
  (vec
   (for [i (range n)]
     {:title       (str "Item " i)
      :subtitle    "subtitle"
      :action      :selector
      :action-props {:type     :checkbox
                     :checked? (contains? @selections! i)
                     :on-change #(if (contains? @selections! i)
                                   (swap! selections! disj i)
                                   (swap! selections! conj i))}
      :image       :icon-avatar
      :image-props  {:icon (resources/get-mock-image :diamond)
                     :size :size-20}
      :image-size  32})))

I think this function is not enough to know what's the problem. I'll check the code.

@Rende11 Please provide the namespace of the component

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.

Hey @Rende11

I left some comments.
Also I think the name for the subscription and related values is network-preferences and I've seen the name network-preference (not plural).

I wonder if this is important or not, in general I think is better to preserve the concept names

src/status_im2/contexts/wallet/edit_account/view.cljs Outdated Show resolved Hide resolved
src/status_im2/subs/wallet/networks.cljs Outdated Show resolved Hide resolved
src/status_im2/subs/wallet/wallet.cljs Outdated Show resolved Hide resolved
src/status_im2/subs/wallet/wallet.cljs Show resolved Hide resolved
src/status_im2/subs/wallet/wallet_test.cljs Outdated Show resolved Hide resolved
src/status_im2/subs/wallet/wallet_test.cljs Outdated Show resolved Hide resolved
src/status_im2/subs/wallet/wallet_test.cljs Show resolved Hide resolved
@Rende11
Copy link
Collaborator Author

Rende11 commented Nov 16, 2023

Looks like "blinking" - component issue (or I use it in wrong way) I've checked in components sandbox:
Simulator.Screen.Recording.-.iPhone.13.-.2023-11-11.at.18.08.59.mp4

selections (reagent/atom #{0 1 2 3 4}) 

(defn create-item-array
  [n selections!]
  (vec
   (for [i (range n)]
     {:title       (str "Item " i)
      :subtitle    "subtitle"
      :action      :selector
      :action-props {:type     :checkbox
                     :checked? (contains? @selections! i)
                     :on-change #(if (contains? @selections! i)
                                   (swap! selections! disj i)
                                   (swap! selections! conj i))}
      :image       :icon-avatar
      :image-props  {:icon (resources/get-mock-image :diamond)
                     :size :size-20}
      :image-size  32})))

I think this function is not enough to know what's the problem. I'll check the code.

@Rende11 Please provide the namespace of the component

@ulisesmac
quo.components.settings.category.view/category

@Rende11 Rende11 force-pushed the wallet/network-configuration branch 3 times, most recently from ae2ca9f to 3c5992b Compare November 16, 2023 18:12
@Rende11 Rende11 requested review from vkjr and ulisesmac November 16, 2023 18:23
@ulisesmac
Copy link
Contributor

Looks like "blinking" - component issue (or I use it in wrong way) I've checked in components sandbox:
Simulator.Screen.Recording.-.iPhone.13.-.2023-11-11.at.18.08.59.mp4

selections (reagent/atom #{0 1 2 3 4}) 

(defn create-item-array
  [n selections!]
  (vec
   (for [i (range n)]
     {:title       (str "Item " i)
      :subtitle    "subtitle"
      :action      :selector
      :action-props {:type     :checkbox
                     :checked? (contains? @selections! i)
                     :on-change #(if (contains? @selections! i)
                                   (swap! selections! disj i)
                                   (swap! selections! conj i))}
      :image       :icon-avatar
      :image-props  {:icon (resources/get-mock-image :diamond)
                     :size :size-20}
      :image-size  32})))

I think this function is not enough to know what's the problem. I'll check the code.
@Rende11 Please provide the namespace of the component

@ulisesmac quo.components.settings.category.view/category

Please let's sovle it in a different issue since it's an existing problem in the component, not related to this PR 👍

Copy link
Contributor

@vkjr vkjr 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! Thanks @Rende11!

@Rende11 Rende11 force-pushed the wallet/network-configuration branch 2 times, most recently from f042206 to e182225 Compare December 7, 2023 18:47
@Rende11
Copy link
Collaborator Author

Rende11 commented Dec 7, 2023

@VolodLytvynenko
I made fixes, please check.
Simulator Screen Recording - iPhone 11 - 2023-12-07 at 21 55 04

@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: 702732,702948,702894,703503,702846,702731,702808 

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...pJN5P was not restored as a contact from waku backup!
    E    admin_closed was not restored from waku-backup!!
    



    Device sessions

    Expected to fail tests (7)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_pin_messages, id: 702731

    Test is not run, e2e blocker  
    

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

    Class 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 TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

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

    2. test_community_navigate_to_channel_when_relaunch, id: 702846

    Test is not run, e2e blocker  
    

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

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

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

    1. test_activity_center_mentions, id: 702957
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_leave, id: 702845
    Device sessions

    4. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    Class TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    2. test_links_open_universal_links_from_other_apps, id: 704614
    Device sessions

    3. test_links_deep_links, id: 702775
    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 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 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 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_edit_delete_message_when_offline, id: 704615
    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_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    9. test_community_message_edit, id: 702843
    Device sessions

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

    @VolodLytvynenko
    Copy link
    Contributor

    hi @Rende11 Could you please rebase and resolve the existing conflicts in the current PR? Thanx

    Copy link
    Contributor

    @mmilad75 mmilad75 left a comment

    Choose a reason for hiding this comment

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

    Nice job

    @VolodLytvynenko
    Copy link
    Contributor

    @Rende11 The integration tests are failed https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-17862/22/consoleText could you check, please?

    @Rende11
    Copy link
    Collaborator Author

    Rende11 commented Dec 11, 2023

    @Rende11 The integration tests are failed https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-17862/22/consoleText could you check, please?

    I don't have access to this link, but I will check tests locally

    @Rende11 Rende11 force-pushed the wallet/network-configuration branch 3 times, most recently from 8a598de to 7ccdaa8 Compare December 11, 2023 21:22
    @Rende11
    Copy link
    Collaborator Author

    Rende11 commented Dec 11, 2023

    @Rende11 The integration tests are failed https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-17862/22/consoleText could you check, please?

    Updated and fixed

    @status-im-auto
    Copy link
    Member

    73% of end-end tests have passed

    Total executed tests: 49
    Failed tests: 6
    Expected to fail tests: 7
    Passed tests: 36
    
    IDs of failed tests: 702784,702859,703495,703297,703391,702947 
    
    IDs of expected to fail tests: 702732,702948,702894,703503,702846,702731,702808 
    

    Failed tests (6)

    Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784

    ## Signed in successfully!
    Device 2: Looking for chat: 'sender'

    critical/chats/test_1_1_public_chats.py:676: in test_1_1_chat_delete_via_long_press_relogin
        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))]))
     Deleted sender chat is shown, but the chat has been deleted
    E    Deleted chat sender is shown after re-login, but the chat has been deleted
    



    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:501: in test_community_one_image_send_reply
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Not expected image is shown to the receiver
    



    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947

    Device 1: Tap on found: ActivityTabButton
    Device 1: Find ActivityTabButton by accessibility id: tab-mention

    activity_center/test_activity_center.py:355: in test_activity_center_reply_read_unread_delete_filter_swipe
        self.home_1.mention_activity_tab_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: ActivityTabButton by accessibility id: `tab-mention` 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 TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_mute_chat, id: 703495

    # STEP: Change device time so chat will be unmuted by timer
    Device 2: Long press on ChatElement

    critical/chats/test_group_chat.py:458: in test_group_chat_mute_chat
        chat.long_press_element()
    ../views/base_element.py:315: in long_press_element
        action.long_press(element).release().perform()
    /home/jenkins/.local/lib/python3.10/site-packages/appium/webdriver/common/touch_action.py:174: in perform
        self._driver.execute(Command.TOUCH_ACTION, 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: //*[@content-desc='author-primary-name'][starts-with(@text,'wdyqkyk')]/..' is not linked to the same object 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: //*[@content-desc='author-primary-name'][starts-with(@text,'wdyqkyk')]/..' is not linked to the same object in DOM anymore
    E   	at io.appium.uiautomator2.model.ElementsCache.restore(ElementsCache.java:122)
    E   	at io.appium.uiautomator2.model.ElementsCache.get(ElementsCache.java:153)
    E   	at io.appium.uiautomator2.handler.Location.safeHandle(Location.java:23)
    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

    2. test_group_chat_send_image_save_and_share, id: 703297

    Device 3: Find ChatsTab by accessibility id: chats-stack-tab
    Device 3: Tap on found: ChatsTab

    critical/chats/test_group_chat.py:282: in test_group_chat_send_image_save_and_share
        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))]))
     Not expected image is shown to the admin.
    E    Not expected image is shown to the member_2.
    



    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_send_image_save_and_share, id: 703391

    Device 2: Find Button by accessibility id: image-0
    Device 2: Click system back button

    critical/chats/test_1_1_public_chats.py:453: in test_1_1_chat_send_image_save_and_share
        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))]))
     Not expected image is shown to the receiver.
    



    Device sessions

    Expected to fail tests (7)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

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

    2. test_community_navigate_to_channel_when_relaunch, id: 702846

    Test is not run, e2e blocker  
    

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

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

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

    Passed tests (36)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    2. test_1_1_chat_mute_chat, id: 703496
    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_mute_community_and_channel, id: 703382
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194
    Device sessions

    2. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    3. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    4. test_community_edit_delete_message_when_offline, id: 704615
    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 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 TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    2. test_links_open_universal_links_from_other_apps, id: 704614
    Device sessions

    3. test_links_deep_links, id: 702775
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_mentions, id: 702957
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202
    Device sessions

    2. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_leave, id: 702845
    Device sessions

    4. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    Class 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_message_reaction, id: 702730
    Device sessions

    @VolodLytvynenko
    Copy link
    Contributor

    hey @Rende11 thank you for PR. No issues from my side. PR is ready to be merged

    Check chains
    
    Save network-preferences
    
    Improvements
    
    Fix linter issues
    
    Clean up
    
    Updates
    
    Update sub test
    
    Update tests
    
    Updates
    
    Store as set
    
    Fix minor issues
    
    Update naming
    
    Revive `get-account-by-address`
    
    Fix alignment
    
    Fix merge
    
    Fix btn label
    
    Fix desc
    
    Split state
    
    Fix test
    
    Format tests
    @Rende11 Rende11 force-pushed the wallet/network-configuration branch from 7ccdaa8 to 6c90f43 Compare December 12, 2023 12:40
    @J-Son89 J-Son89 merged commit 7564113 into status-im:develop Dec 12, 2023
    5 checks passed
    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.

    Wallet - Implement Network Configuration
    9 participants