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

Account switcher for send flow #18100

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

smohamedjavid
Copy link
Member

@smohamedjavid smohamedjavid commented Dec 6, 2023

fixes #18052 & #18144

Summary

This PR:

  • adds another variant (Select account bottom sheet) of account switcher for send flow
  • adds watch-only? key in the account to prevent repetitive account type checks across the codebase
  • cleans up and updates the wallet reframe subscription tests
Account-switcher.mp4

Platforms

  • Android
  • iOS

Steps to test

  • Open Status
  • Navigate to the (new) wallet tab
  • Open any account (should NOT be a watched account) by tapping on any of the cards in the home
  • Tap on the Send button to open the send flow
  • Tap on the Account Avatar (Switcher) in the top right corner to open the switcher sheet
  • The accounts list should be displayed with the selected account
  • Verify the list does NOT show any watched accounts

status: ready

@smohamedjavid smohamedjavid self-assigned this Dec 6, 2023
@status-im-auto
Copy link
Member

status-im-auto commented Dec 6, 2023

Jenkins Builds

Click to see older builds (37)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 76a186f #1 2023-12-06 17:43:47 ~6 min android 🤖apk 📲
✔️ 76a186f #1 2023-12-06 17:44:02 ~6 min ios 📱ipa 📲
✔️ 76a186f #1 2023-12-06 17:46:15 ~8 min android-e2e 🤖apk 📲
76a186f #1 2023-12-06 17:48:22 ~10 min tests 📄log
✔️ 7dc1987 #2 2023-12-06 18:34:31 ~6 min android-e2e 🤖apk 📲
✔️ 7dc1987 #2 2023-12-06 18:34:48 ~6 min ios 📱ipa 📲
✔️ 7dc1987 #2 2023-12-06 18:37:30 ~9 min android 🤖apk 📲
✔️ 7dc1987 #2 2023-12-06 18:39:06 ~10 min tests 📄log
✔️ bac5653 #3 2023-12-08 10:14:51 ~6 min ios 📱ipa 📲
✔️ bac5653 #3 2023-12-08 10:15:26 ~6 min android-e2e 🤖apk 📲
✔️ bac5653 #3 2023-12-08 10:15:46 ~7 min android 🤖apk 📲
✔️ bac5653 #3 2023-12-08 10:18:47 ~10 min tests 📄log
dc8e221 #4 2023-12-11 11:21:47 ~2 min tests 📄log
✔️ dc8e221 #4 2023-12-11 11:25:21 ~6 min ios 📱ipa 📲
✔️ dc8e221 #4 2023-12-11 11:25:48 ~6 min android-e2e 🤖apk 📲
✔️ dc8e221 #4 2023-12-11 11:25:51 ~6 min android 🤖apk 📲
dd41e7d #5 2023-12-11 11:55:31 ~6 min tests 📄log
✔️ dd41e7d #5 2023-12-11 11:57:06 ~8 min android 🤖apk 📲
✔️ dd41e7d #5 2023-12-11 11:58:42 ~9 min android-e2e 🤖apk 📲
✔️ dd41e7d #5 2023-12-11 12:00:51 ~12 min ios 📱ipa 📲
✔️ 51304b2 #6 2023-12-11 16:18:31 ~4 min tests 📄log
✔️ 51304b2 #6 2023-12-11 16:21:18 ~7 min android-e2e 🤖apk 📲
✔️ 51304b2 #6 2023-12-11 16:22:10 ~8 min android 🤖apk 📲
✔️ 51304b2 #6 2023-12-11 16:25:27 ~11 min ios 📱ipa 📲
195b8cf #7 2023-12-11 18:49:59 ~5 min tests 📄log
✔️ 195b8cf #7 2023-12-11 18:50:17 ~5 min ios 📱ipa 📲
✔️ 195b8cf #7 2023-12-11 18:53:36 ~8 min android 🤖apk 📲
✔️ 195b8cf #7 2023-12-11 18:53:36 ~8 min android-e2e 🤖apk 📲
195b8cf #8 2023-12-11 19:14:00 ~4 min tests 📄log
✔️ 4ac66da #9 2023-12-12 09:08:44 ~4 min tests 📄log
✔️ 4ac66da #8 2023-12-12 09:11:38 ~7 min android-e2e 🤖apk 📲
✔️ 4ac66da #8 2023-12-12 09:11:44 ~7 min android 🤖apk 📲
✔️ 4ac66da #8 2023-12-12 09:14:22 ~10 min ios 📱ipa 📲
67b75cc #10 2023-12-13 11:24:41 ~2 min tests 📄log
✔️ 67b75cc #9 2023-12-13 11:28:00 ~5 min ios 📱ipa 📲
✔️ 67b75cc #9 2023-12-13 11:29:41 ~7 min android-e2e 🤖apk 📲
✔️ 67b75cc #9 2023-12-13 11:30:21 ~7 min android 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4eafae9 #11 2023-12-13 14:22:31 ~5 min tests 📄log
✔️ 4eafae9 #10 2023-12-13 14:24:25 ~7 min android-e2e 🤖apk 📲
✔️ 4eafae9 #10 2023-12-13 14:24:46 ~7 min android 🤖apk 📲
✔️ 4eafae9 #10 2023-12-13 14:28:40 ~11 min ios 📱ipa 📲
✔️ 2dbc407 #12 2023-12-13 17:14:32 ~4 min tests 📄log
✔️ 2dbc407 #11 2023-12-13 17:15:36 ~5 min ios 📱ipa 📲
✔️ 2dbc407 #11 2023-12-13 17:17:25 ~7 min android 🤖apk 📲
✔️ 2dbc407 #11 2023-12-13 17:17:58 ~7 min android-e2e 🤖apk 📲

@smohamedjavid smohamedjavid force-pushed the feature/account-switcher-for-send-flow branch from 76a186f to 7dc1987 Compare December 6, 2023 18:27
@smohamedjavid smohamedjavid marked this pull request as ready for review December 6, 2023 18:40
@smohamedjavid smohamedjavid force-pushed the feature/account-switcher-for-send-flow branch from 7dc1987 to bac5653 Compare December 8, 2023 10:08
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.

watched address sub is a nice addition 👍

Comment on lines 20 to 21
(-> account
(assoc :watch-only? (= (:type account) :watch))))
Copy link
Contributor

Choose a reason for hiding this comment

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

I usually suggest avoiding threading macros for only one step. I think they worth using when we have at least two steps,

@smohamedjavid smohamedjavid force-pushed the feature/account-switcher-for-send-flow branch 2 times, most recently from dc8e221 to dd41e7d Compare December 11, 2023 11:48
@J-Son89
Copy link
Contributor

J-Son89 commented Dec 11, 2023

@VolodLytvynenko - this pr handles the account switcher in the send flow. @smohamedjavid can you ensure that this doesn't allow switching to a watch only account 🙏

@J-Son89
Copy link
Contributor

J-Son89 commented Dec 11, 2023

something not working with github so I can't approve - pr LGTM 👍

@smohamedjavid
Copy link
Member Author

@VolodLytvynenko - this pr handles the account switcher in the send flow. @smohamedjavid can you ensure that this doesn't allow switching to a watch only account 🙏

Done 👍

something not working with github so I can't approve - pr LGTM 👍

Yeah 😅 . I have been facing it too. Reloading the page works.

@smohamedjavid smohamedjavid force-pushed the feature/account-switcher-for-send-flow branch 2 times, most recently from 51304b2 to 195b8cf Compare December 11, 2023 18:44
@smohamedjavid smohamedjavid force-pushed the feature/account-switcher-for-send-flow branch from 195b8cf to 4ac66da Compare December 12, 2023 09:04
@status-im-auto
Copy link
Member

63% of end-end tests have passed

Total executed tests: 49
Failed tests: 12
Expected to fail tests: 6
Passed tests: 31
IDs of failed tests: 702845,702947,702786,703496,702809,702948,702859,703629,702783,702784,703391,703297 
IDs of expected to fail tests: 702894,702731,702808,702846,702732,703503 

Failed tests (12)

Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845
    Test setup failed: critical/chats/test_public_chat_browsing.py:841: in prepare_devices
        self.chat_2.send_message(self.text_message)
    ../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 `2`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element
    



    2. test_community_mentions_push_notification, id: 702786

    # STEP: Send message to contact (need for blocking contact) test
    Device 2: Sending message 'hello'

    Test setup failed: critical/chats/test_public_chat_browsing.py:841: in prepare_devices
        self.chat_2.send_message(self.text_message)
    ../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 `2`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element
    



    Device sessions

    3. test_community_markdown_support, id: 702809

    Test setup failed: critical/chats/test_public_chat_browsing.py:841: in prepare_devices
        self.chat_2.send_message(self.text_message)
    ../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 `2`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element
    



    4. test_community_hashtag_links_to_community_channels, id: 702948

    Test setup failed: critical/chats/test_public_chat_browsing.py:841: in prepare_devices
        self.chat_2.send_message(self.text_message)
    ../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 `2`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element 
    

    [[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: critical/chats/test_public_chat_browsing.py:841: in prepare_devices
        self.chat_2.send_message(self.text_message)
    ../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 `2`: `ChatMessageInput` by` accessibility id`: `chat-message-input` is not found on the screen after wait_for_element
    



    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496

    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_1_1_public_chats.py:524: 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_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

    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_1_1_public_chats.py:524: 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' 
    

    [[Data delivery issue]]

    3. test_1_1_chat_delete_via_long_press_relogin, id: 702784

    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_1_1_public_chats.py:524: 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 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 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.
    E    Message about saving a photo is not shown for receiver.
    



    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

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

    Expected to fail tests (6)

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

    1. test_1_1_chat_pin_messages, id: 702731

    Test is not run, e2e blocker  
    

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

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_offline_pn, id: 702808

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

    critical/chats/test_group_chat.py: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]]

    Passed tests (31)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    3. test_community_undo_delete_message, id: 702869
    Device sessions

    4. test_community_mute_community_and_channel, id: 703382
    Device sessions

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

    1. test_navigation_jump_to, id: 702936
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    Device sessions

    Class 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

    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_mute_chat, id: 703495
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    2. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    3. test_add_contact_field_validation, id: 702777
    Device sessions

    Class 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_message_edit, id: 702843
    Device sessions

    9. test_community_several_images_send_reply, id: 703194
    Device sessions

    @status-im-auto
    Copy link
    Member

    61% of end-end tests have passed

    Total executed tests: 49
    Failed tests: 12
    Expected to fail tests: 7
    Passed tests: 30
    
    IDs of failed tests: 702855,702947,702730,702745,702851,702733,702813,702859,702782,702784,703391,703297 
    
    IDs of expected to fail tests: 702894,702731,702808,702948,702846,702732,703503 
    

    Failed tests (12)

    Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_edit_message, id: 702855
    Test setup failed: critical/chats/test_1_1_public_chats.py:42: in prepare_devices
        self.chat_1.send_message('hey')
    ../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_1_1_chat_message_reaction, id: 702730

    Device 1: ChatMessageInput element not found
    Device 1: Sending message 'hey'

    Test setup failed: critical/chats/test_1_1_public_chats.py:42: in prepare_devices
        self.chat_1.send_message('hey')
    ../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_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745

    Test setup failed: critical/chats/test_1_1_public_chats.py:42: in prepare_devices
        self.chat_1.send_message('hey')
    ../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
    



    4. test_1_1_chat_text_message_delete_push_disappear, id: 702733

    Test setup failed: critical/chats/test_1_1_public_chats.py:42: in prepare_devices
        self.chat_1.send_message('hey')
    ../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_1_1_chat_push_emoji, id: 702813

    Test setup failed: critical/chats/test_1_1_public_chats.py:42: in prepare_devices
        self.chat_1.send_message('hey')
    ../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
    



    6. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782

    Test setup failed: critical/chats/test_1_1_public_chats.py:42: in prepare_devices
        self.chat_1.send_message('hey')
    ../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
    



    7. test_1_1_chat_send_image_save_and_share, id: 703391

    Test setup failed: critical/chats/test_1_1_public_chats.py:42: in prepare_devices
        self.chat_1.send_message('hey')
    ../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 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 TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851

    Device 1: Tap on found: Button
    # STEP: Device1 check that contact appeared in contact list mutually

    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:703: in urlopen
        httplib_response = self._make_request(
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:449: in _make_request
        six.raise_from(e, None)
    <string>:3: in raise_from
        ???
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:444: in _make_request
        httplib_response = conn.getresponse()
    /usr/lib/python3.10/http/client.py:1375: in getresponse
        response.begin()
    /usr/lib/python3.10/http/client.py:318: in begin
        version, status, reason = self._read_status()
    /usr/lib/python3.10/http/client.py:287: in _read_status
        raise RemoteDisconnected("Remote end closed connection without"
    E   http.client.RemoteDisconnected: Remote end closed connection without response
    
    During handling of the above exception, another exception occurred:
    activity_center/test_activity_center.py:129: in test_activity_center_contact_request_accept_swipe_mark_all_as_read
        self.device_2.just_fyi('Device1 check that contact appeared in contact list mutually')
    ../views/base_view.py:387: in just_fyi
        self.driver.execute_script("sauce:context=STEP: %s" % some_str)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:405: in execute_script
        return self.execute(command, {"script": script, "args": converted_args})["value"]
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:343: in execute
        response = self.command_executor.execute(driver_command, params)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py:291: in execute
        return self._request(command_info[0], url, body=data)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py:312: in _request
        response = self._conn.request(method, url, body=body, headers=headers)
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/request.py:78: in request
        return self.request_encode_body(
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/request.py:170: in request_encode_body
        return self.urlopen(method, url, **extra_kw)
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/poolmanager.py:376: in urlopen
        response = conn.urlopen(method, u.request_uri, **kw)
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:787: in urlopen
        retries = retries.increment(
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/util/retry.py:550: in increment
        raise six.reraise(type(error), error, _stacktrace)
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/packages/six.py:769: in reraise
        raise value.with_traceback(tb)
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:703: in urlopen
        httplib_response = self._make_request(
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:449: in _make_request
        six.raise_from(e, None)
    <string>:3: in raise_from
        ???
    /home/jenkins/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:444: in _make_request
        httplib_response = conn.getresponse()
    /usr/lib/python3.10/http/client.py:1375: in getresponse
        response.begin()
    /usr/lib/python3.10/http/client.py:318: in begin
        version, status, reason = self._read_status()
    /usr/lib/python3.10/http/client.py:287: in _read_status
        raise RemoteDisconnected("Remote end closed connection without"
     ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
    



    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_one_image_send_reply, id: 702859

    Device 2: Type reply to image to ChatMessageInput
    Device 2: Find SendMessageButton by accessibility id: send-message-button

    critical/chats/test_public_chat_browsing.py:483: in test_community_one_image_send_reply
        self.channel_2.send_message_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: SendMessageButton by accessibility id: `send-message-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 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_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

    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 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_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 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 (30)

    Click to expand

    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

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

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

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

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    2. 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_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_mute_chat, id: 703495
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    3. test_community_undo_delete_message, id: 702869
    Device sessions

    4. test_community_mute_community_and_channel, id: 703382
    Device sessions

    @status-im-auto
    Copy link
    Member

    100% of end-end tests have passed

    Total executed tests: 12
    Failed tests: 0
    Expected to fail tests: 0
    Passed tests: 12
    

    Passed tests (12)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    2. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    3. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    4. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    5. test_1_1_chat_edit_message, id: 702855
    Device sessions

    6. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    7. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    Class 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

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_one_image_send_reply, id: 702859
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    @pavloburykh
    Copy link
    Contributor

    @smohamedjavid thank you for the PR! Ready for merge.

    @smohamedjavid
    Copy link
    Member Author

    @smohamedjavid thank you for the PR! Ready for merge.

    Thanks for testing this PR real quick, @pavloburykh.

    @smohamedjavid smohamedjavid force-pushed the feature/account-switcher-for-send-flow branch from 4eafae9 to 2dbc407 Compare December 13, 2023 17:09
    @smohamedjavid smohamedjavid merged commit b668e4d into develop Dec 13, 2023
    6 checks passed
    @smohamedjavid smohamedjavid deleted the feature/account-switcher-for-send-flow branch December 13, 2023 17:19
    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.

    Implement Account Switcher for Send page
    6 participants