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 usage of ratom to fix wallet share #18883

Merged
merged 5 commits into from
Mar 6, 2024
Merged

Fix usage of ratom to fix wallet share #18883

merged 5 commits into from
Mar 6, 2024

Conversation

ibrkhalil
Copy link
Contributor

fixes #18874

Summary

Fixes a typo related to wallet share screen.

status: ready

@ibrkhalil ibrkhalil self-assigned this Feb 17, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Feb 17, 2024

Jenkins Builds

Click to see older builds (44)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9b2ddaa #1 2024-02-17 19:36:37 ~5 min tests 📄log
✔️ 9b2ddaa #1 2024-02-17 19:38:51 ~7 min android-e2e 🤖apk 📲
✔️ 9b2ddaa #1 2024-02-17 19:38:58 ~7 min android 🤖apk 📲
✔️ 9b2ddaa #1 2024-02-17 19:40:33 ~9 min ios 📱ipa 📲
✔️ caad968 #2 2024-02-18 12:08:30 ~5 min tests 📄log
caad968 #2 2024-02-18 12:10:20 ~7 min ios 📄log
✔️ caad968 #2 2024-02-18 12:10:38 ~7 min android-e2e 🤖apk 📲
✔️ caad968 #2 2024-02-18 12:11:54 ~8 min android 🤖apk 📲
✔️ 19c1e8b #3 2024-02-19 18:16:35 ~5 min tests 📄log
✔️ 19c1e8b #3 2024-02-19 18:17:39 ~6 min ios 📱ipa 📲
✔️ 19c1e8b #3 2024-02-19 18:18:17 ~7 min android-e2e 🤖apk 📲
✔️ 19c1e8b #3 2024-02-19 18:18:25 ~7 min android 🤖apk 📲
✔️ 268aa07 #5 2024-02-19 19:35:02 ~4 min tests 📄log
✔️ 268aa07 #5 2024-02-19 19:37:32 ~7 min ios 📱ipa 📲
✔️ 268aa07 #5 2024-02-19 19:37:51 ~7 min android-e2e 🤖apk 📲
✔️ 268aa07 #5 2024-02-19 19:37:52 ~7 min android 🤖apk 📲
✔️ ef583c8 #6 2024-02-26 12:02:16 ~4 min tests 📄log
✔️ ef583c8 #6 2024-02-26 12:04:39 ~7 min android-e2e 🤖apk 📲
✔️ ef583c8 #6 2024-02-26 12:04:44 ~7 min android 🤖apk 📲
✔️ ef583c8 #6 2024-02-26 12:05:45 ~8 min ios 📱ipa 📲
✔️ a37081f #7 2024-02-26 15:19:23 ~4 min tests 📄log
✔️ a37081f #7 2024-02-26 15:21:25 ~6 min android-e2e 🤖apk 📲
✔️ a37081f #7 2024-02-26 15:21:41 ~7 min android 🤖apk 📲
a37081f #7 2024-02-26 15:25:55 ~11 min ios 📄log
✔️ a37081f #8 2024-02-26 15:54:23 ~11 min ios 📱ipa 📲
✔️ e874216 #8 2024-02-27 09:00:44 ~4 min tests 📄log
✔️ e874216 #8 2024-02-27 09:03:13 ~7 min android-e2e 🤖apk 📲
✔️ e874216 #8 2024-02-27 09:03:20 ~7 min android 🤖apk 📲
✔️ e874216 #9 2024-02-27 09:05:07 ~9 min ios 📱ipa 📲
✔️ 1581f44 #9 2024-02-28 11:48:21 ~7 min android-e2e 🤖apk 📲
✔️ 1581f44 #9 2024-02-28 11:48:30 ~7 min android 🤖apk 📲
✔️ 1581f44 #10 2024-02-28 11:50:30 ~9 min ios 📱ipa 📲
✔️ 57b4440 #10 2024-02-28 16:27:27 ~6 min tests 📄log
✔️ 57b4440 #10 2024-02-28 16:28:38 ~7 min android-e2e 🤖apk 📲
✔️ 57b4440 #10 2024-02-28 16:28:40 ~7 min android 🤖apk 📲
✔️ 57b4440 #11 2024-02-28 16:33:39 ~12 min ios 📱ipa 📲
✔️ 0d40ed2 #11 2024-02-28 16:46:02 ~6 min tests 📄log
✔️ 0d40ed2 #11 2024-02-28 16:46:35 ~7 min android-e2e 🤖apk 📲
✔️ 0d40ed2 #11 2024-02-28 16:46:44 ~7 min android 🤖apk 📲
✔️ 0d40ed2 #12 2024-02-28 16:52:39 ~13 min ios 📱ipa 📲
✔️ f7f71e9 #12 2024-02-28 17:01:17 ~7 min tests 📄log
✔️ f7f71e9 #12 2024-02-28 17:02:37 ~8 min android-e2e 🤖apk 📲
✔️ f7f71e9 #12 2024-02-28 17:02:44 ~8 min android 🤖apk 📲
✔️ f7f71e9 #13 2024-02-28 17:06:32 ~12 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9af2fcf #13 2024-03-05 15:46:11 ~6 min android 🤖apk 📲
✔️ 9af2fcf #13 2024-03-05 15:46:21 ~6 min android-e2e 🤖apk 📲
✔️ 9af2fcf #14 2024-03-05 15:47:15 ~7 min ios 📱ipa 📲
✔️ 11e1010 #14 2024-03-06 08:32:42 ~6 min tests 📄log
✔️ 11e1010 #14 2024-03-06 08:33:09 ~7 min android-e2e 🤖apk 📲
✔️ 11e1010 #14 2024-03-06 08:33:43 ~7 min android 🤖apk 📲
✔️ 11e1010 #15 2024-03-06 08:34:26 ~8 min ios 📱ipa 📲

@@ -74,7 +74,7 @@
:emoji (:emoji account)
:on-multichain-press #(reset! wallet-type :multichain)
:on-legacy-press #(reset! wallet-type :legacy)
:on-settings-press #(open-preferences @selected-networks)}]]]))))
:on-settings-press #(open-preferences selected-networks)}]]]))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, not particularly a fan of passing ratoms through to functions. Is this something we can avoid?
It seems better if a component can just take the value as a prop instead. Do we have a better approach for situations like this?
cc @ilmotta, @ulisesmac, @Parveshdhull

Copy link
Member

Choose a reason for hiding this comment

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

Hi, In this particular scenario, we are modifying the state of current component based on what actions are performed on the next screen.
If we don't want to directly pass this ratom, we can instead pass the function that does the modification in the end (on-save)

Copy link
Contributor

Choose a reason for hiding this comment

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

These functions are constant (:on-settings-press, :on-legacy-press and on-multichain-press) in terms of they always do the same.

Currently, each time the atoms selected-networks or wallet-type change, the component will regenerate the involved functions, but there's no need of it.

We can define them in the form-2 initializing section:

(defn wallet-qr-code-item-internal [props]
  (let [{:keys [account width index]} props
        selected-networks             (reagent/atom [:ethereum :optimism :arbitrum])
        wallet-type                   (reagent/atom :legacy)
        on-legacy-press               #(reset! wallet-type :legacy) ;; Here
        on-settings-press             #(open-preferences @selected-networks) ;; Here
        ...
        ]
    (fn [...]
      ...)))

So that we will pass the exact same object (function) to the child (quo/share-qr-code), it helps to avoid undesired rerenders.

@J-Son89 I think sometimes it's actually needed to deref an atom inside a callback function, but most of the times we can define that function once instead of on each rerender.

@J-Son89
Copy link
Contributor

J-Son89 commented Feb 18, 2024

Also I think this fix is needed due to recent changes on the network preferences. Would appreciate that @smohamedjavid gets to check this before it goes to qa etc.
cheers for the fix! 🙏

@status-im-auto
Copy link
Member

96% of end-end tests have passed

Total executed tests: 48
Failed tests: 1
Expected to fail tests: 1
Passed tests: 46
IDs of failed tests: 703629 
IDs of expected to fail tests: 703503 

Failed tests (1)

Click to expand
  • Rerun failed tests

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

    Expected to fail tests (1)

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

    Passed tests (46)

    Click to expand

    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_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 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_mentions_push_notification, id: 702786
    Device sessions

    4. test_community_leave, id: 702845
    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_contact_block_unblock_offline, id: 702894
    Device sessions

    6. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    9. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    10. test_community_message_edit, id: 702843
    Device sessions

    11. test_community_unread_messages_badge, id: 702841
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    Device sessions

    2. test_group_chat_mute_chat, id: 703495
    Device sessions

    3. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    4. test_group_chat_reactions, id: 703202
    Device sessions

    5. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    6. test_group_chat_offline_pn, id: 702808
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    2. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    3. test_community_undo_delete_message, id: 702869
    Device sessions

    4. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    5. test_community_mute_community_and_channel, id: 703382
    Device sessions

    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_pin_messages, id: 702731
    Device sessions

    8. test_1_1_chat_message_reaction, id: 702730
    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

    @mariia-skrypnyk
    Copy link

    @ibrkhalil hi!

    Can you please rebase your PR?

    @mariia-skrypnyk mariia-skrypnyk self-assigned this Feb 26, 2024
    @ibrkhalil
    Copy link
    Contributor Author

    @ibrkhalil hi!

    Can you please rebase your PR?

    Done

    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Feb 26, 2024

    Hi @ibrkhalil! Thanks for your PR!

    ISSUE 1: App crashes on Onboarding on Notifications step

    Steps:

    1. Download app
    2. Go through Onboarding
    3. Choose Maybe Later on Notifications screen

    Actual result: app crashes (10/10)
    Device: 13 iPhone 17.3.1 version (it is important!), NO such issue on 17.2.1 BUT after update to 17.3.1 it was also reproduced on SE

    Expected result: no crash

    @ibrkhalil
    Copy link
    Contributor Author

    Hi @ibrkhalil! Thanks for your PR!

    ISSUE 1: App crashes on Onboarding on Notifications step

    Steps:

    1. Download app
    2. Go through Onboarding
    3. Choose Maybe Later on Notifications screen

    Actual result: app crashes (10/10) Device: 13 iPhone 17.3.1 version (it is important!), NO such issue on 17.2.1 BUT after update to 17.3.1 it was also reproduced on SE

    Expected result: no crash

    Rebased again, Hopefully that fixes the issue.
    Thanks!

    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.

    Nice 👍

    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Feb 28, 2024

    ISSUE 2: [iOS] Error on Wallet tab of Share screen

    Steps:

    1. Login to app
    2. Go to Share-> Wallet tap
    3. try to scroll the screen

    Actual result:
    Screenshot 2024-02-28 at 14 46 20

    Logs are attached.
    status_logs (1).zip

    Expected result: no error

    @status-im-auto
    Copy link
    Member

    62% of end-end tests have passed

    Total executed tests: 48
    Failed tests: 17
    Expected to fail tests: 1
    Passed tests: 30
    
    IDs of failed tests: 702840,702894,703086,702844,703202,702841,702807,702839,702808,702838,704615,702859,702783,702843,702732,703495,703194 
    
    IDs of expected to fail tests: 703503 
    

    Failed tests (17)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    2. test_community_contact_block_unblock_offline, id: 702894

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    3. test_community_mark_all_messages_as_read, id: 703086

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    4. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    5. test_community_unread_messages_badge, id: 702841

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    6. test_community_message_delete, id: 702839

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` 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: Find Button by xpath: //*[@content-desc='password-input']/../following-sibling::*//*[@text='Join Community']
    Device 2: Tap on found: Button

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    8. test_community_edit_delete_message_when_offline, id: 704615

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    9. test_community_one_image_send_reply, id: 702859

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    10. test_community_message_edit, id: 702843

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    11. test_community_several_images_send_reply, id: 703194

    Test setup failed: critical/chats/test_public_chat_browsing.py:322: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:444: in join_community
        self.community_status_joined.wait_for_visibility_of_element(60)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Text by accessibility id:`status-tag-positive` is not found on the screen after wait_for_visibility_of_element
    



    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202

    Device 1: Find EmojisNumber by xpath: //*[starts-with(@text,'This is a test message to check some reactions.')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-2']/android.widget.TextView[2]
    Device 1: Find EmojisNumber by xpath: //*[starts-with(@text,'This is a test message to check some reactions.')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-2']/android.widget.TextView[2]

    critical/chats/test_group_chat.py:119: in test_group_chat_reactions
        message_element.emojis_below_message(emoji="thumbs-up").wait_for_element_text(2)
    ../views/base_element.py:190: in wait_for_element_text
        self.driver.fail(message if message else "`%s` is not equal to expected `%s` in %s sec" % (
    base_test_case.py:179: in fail
        pytest.fail('Device %s: %s' % (self.number, text))
     Device 1: `1` is not equal to expected `2` in 30 sec
    



    Device sessions

    2. 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:98: 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))]))
     No PN was received on new message for message in group chat
    



    Device sessions

    3. test_group_chat_offline_pn, id: 702808

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

    critical/chats/test_group_chat.py:324: in test_group_chat_offline_pn
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Messages PN was not fetched from offline
    E    message from old member if not shown for device 0
    E    message from new member if not shown for device 0
    



    Device sessions

    4. test_group_chat_pin_messages, id: 702732

    Device 2: Looking for a message by text: Message 1
    Device 2: Find ChatElementByText by xpath: //*[starts-with(@text,'Message 1')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']

    critical/chats/test_group_chat.py:342: in test_group_chat_pin_messages
        self.chats[1].chat_element_by_text(self.message_1).long_press_element()
    ../views/base_element.py:320: in long_press_element
        element = self.find_element()
    ../views/chat_view.py:134: in find_element
        self.wait_for_visibility_of_element(20)
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatElementByText by xpath:`//*[starts-with(@text,'Message 1')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    5. test_group_chat_mute_chat, id: 703495

    Device 2: Click until ChatMessageInput by accessibility id: chat-message-input will be presented
    Device 2: Looking for a message by text: Chat is unmuted now

    critical/chats/test_group_chat.py:491: in test_group_chat_mute_chat
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Message text 'Text message in the muted chat' is not shown in chat preview after mute
    E    Message 'Text message in the muted chat' is not shown in chat for member_1 after mute
    



    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

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

    critical/chats/test_1_1_public_chats.py:610: 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!
    



    Device sessions

    Expected to fail tests (1)

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

    Passed tests (30)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_edit_message, id: 702855
    Device sessions

    2. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    4. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    5. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    6. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    7. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    8. 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_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_markdown_support, id: 702809
    Device sessions

    4. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    5. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_send_image_save_and_share, id: 703297
    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 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 TestDeepLinksOneDevice:

    1. test_links_deep_links, id: 702775
    Device sessions

    2. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    3. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    4. test_community_undo_delete_message, id: 702869
    Device sessions

    5. test_community_mute_community_and_channel, id: 703382
    Device sessions

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

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    Device sessions

    @status-im-auto
    Copy link
    Member

    94% of end-end tests have passed

    Total executed tests: 17
    Failed tests: 1
    Expected to fail tests: 0
    Passed tests: 16
    
    IDs of failed tests: 703202 
    

    Failed tests (1)

    Click to expand
  • Rerun failed tests

  • Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202

    Device 1: Find `Button` by `accessibility id`: `authors-for-reaction-5`
    Device 1: Tap on found: Button

    critical/chats/test_group_chat.py:211: in test_group_chat_reactions
        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))]))
     Incorrect reactions count for member_2 after changing the reactions
    



    Device sessions

    Passed tests (16)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    Device sessions

    2. test_group_chat_mute_chat, id: 703495
    Device sessions

    3. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    4. test_group_chat_offline_pn, id: 702808
    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_contact_block_unblock_offline, id: 702894
    Device sessions

    6. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    9. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    10. test_community_message_edit, id: 702843
    Device sessions

    11. test_community_unread_messages_badge, id: 702841
    Device sessions

    @mariia-skrypnyk
    Copy link

    Hi @ibrkhalil !

    Please, feel free to merge!
    Thanks!

    @ibrkhalil ibrkhalil merged commit 0937da9 into develop Mar 6, 2024
    6 checks passed
    @ibrkhalil ibrkhalil deleted the 18874 branch March 6, 2024 08:46
    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
    8 participants