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

chore: small refactor to remove some uses of status-im in status-im2 #16358

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

J-Son89
Copy link
Contributor

@J-Son89 J-Son89 commented Jun 22, 2023

This pr includes a few small changes to remove the use of status_im requires within status-im2 namespace.

There are three small changes:
moved safe-trim and safe replace from src/status_im/utils/utils.cljs to utils at src/utils/string.cljs

updated use of background-timer in toasts to use same feature from react-native.background-timer

  • also a small minor refactor that just names the functions/variables.

moved replace-port function in src/status_im/utils/http.cljs to src/status_im2/contexts/chat/utils/core.cljs as this function is only used in the context of chat

To test:
This adds no new functionality as it's just moving code around. But some good places to check are in chat / sending images.
Toasts and also wallet with views related to reciepients 👍

@@ -304,7 +305,7 @@
(re-frame/dispatch [:set-in [:wallet/recipient :searching]
:searching])
(debounce/debounce-and-dispatch [:wallet.recipient/address-changed
(utils/safe-trim %)]
(utils.string/safe-trim %)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved safe-trim to utils at src/utils

@@ -190,7 +190,3 @@
[url]
(string/lower-case (apply str (map filter-letters-numbers-and-replace-dot-on-dash (url-host url)))))

(defn replace-port
Copy link
Contributor Author

Choose a reason for hiding this comment

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

replace-port only used in chat context, for now moved to utils in status_im2/contexts/chat.

Copy link
Member

Choose a reason for hiding this comment

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

http will be moved to status-im2, so it's better to keep replace-port here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok cool, I can either add this to that pr or just remove the replace-port changes and do that in another pr. I will see what's involved.
Any idea where http stuff should go in the codebase?

Copy link
Member

Choose a reason for hiding this comment

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

utils.http

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah okay, thanks @flexsurfer I will sort this!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so I removed the http migrations from this pr and will do it in a follow up as I believe it will be a much bigger pr and want to keep things as focused as possible 👍

@@ -116,16 +116,6 @@
(gstring/format (str "%." places "f") amount)
(or (str amount) 0))))

(defn safe-trim
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved safe-trim and safe-replace to utils at src/utils

@@ -4,78 +4,63 @@
[react-native.gesture :as gesture]
[react-native.reanimated :as reanimated]
[reagent.core :as reagent]
[status-im.utils.utils :as utils.utils]
[react-native.background-timer :as background-timer]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use background timer from react native tooling in root of src

pan-down? (> evt-translation-y 100)
pan-up? (< evt-translation-y -30)]
(cond
pan-down? (reset-translate-y translate-y)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed use of comments and used named vars instead 👍

@status-im-auto
Copy link
Member

status-im-auto commented Jun 22, 2023

Jenkins Builds

Click to see older builds (15)
Commit #️⃣ Finished (UTC) Duration Platform Result
ffbda98 #1 2023-06-22 13:07:25 ~3 min tests 📄log
✔️ ffbda98 #1 2023-06-22 13:10:22 ~6 min android 🤖apk 📲
✔️ ffbda98 #1 2023-06-22 13:10:28 ~6 min ios 📱ipa 📲
✔️ ffbda98 #1 2023-06-22 13:10:49 ~6 min android-e2e 🤖apk 📲
✔️ 56b93e8 #2 2023-06-26 10:11:37 ~6 min ios 📱ipa 📲
56b93e8 #2 2023-06-26 10:13:26 ~8 min tests 📄log
✔️ 56b93e8 #2 2023-06-26 10:15:03 ~9 min android-e2e 🤖apk 📲
✔️ 2fab8bf #3 2023-06-26 10:27:57 ~9 min ios 📱ipa 📲
2fab8bf #3 2023-06-26 10:30:31 ~11 min tests 📄log
✔️ 2fab8bf #3 2023-06-26 10:31:53 ~13 min android-e2e 🤖apk 📲
✔️ 2fab8bf #3 2023-06-26 10:32:17 ~13 min android 🤖apk 📲
✔️ 9f5f27c #4 2023-06-26 13:22:33 ~7 min ios 📱ipa 📲
9f5f27c #4 2023-06-26 13:23:53 ~8 min tests 📄log
✔️ 9f5f27c #4 2023-06-26 13:27:38 ~12 min android-e2e 🤖apk 📲
✔️ 9f5f27c #4 2023-06-26 13:27:55 ~12 min android 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 81f808d #5 2023-06-27 09:40:17 ~5 min ios 📱ipa 📲
✔️ 81f808d #5 2023-06-27 09:43:58 ~9 min android-e2e 🤖apk 📲
✔️ 81f808d #5 2023-06-27 09:45:08 ~10 min android 🤖apk 📲
✔️ 81f808d #5 2023-06-27 09:45:31 ~10 min tests 📄log
✔️ 6eef710 #6 2023-06-27 14:08:01 ~5 min ios 📱ipa 📲
✔️ 6eef710 #6 2023-06-27 14:08:25 ~6 min android-e2e 🤖apk 📲
✔️ 6eef710 #6 2023-06-27 14:08:49 ~6 min android 🤖apk 📲
✔️ 6eef710 #6 2023-06-27 14:09:52 ~7 min tests 📄log

@J-Son89 J-Son89 marked this pull request as ready for review June 22, 2023 13:16
@J-Son89 J-Son89 requested review from flexsurfer and OmarBasem June 22, 2023 13:16
@J-Son89 J-Son89 self-assigned this Jun 22, 2023
Copy link
Member

@flexsurfer flexsurfer left a comment

Choose a reason for hiding this comment

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

better to keep port in http, or move it to utils.http its too genetal, and not related to chat somehow

@@ -190,7 +190,3 @@
[url]
(string/lower-case (apply str (map filter-letters-numbers-and-replace-dot-on-dash (url-host url)))))

(defn replace-port
Copy link
Member

Choose a reason for hiding this comment

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

http will be moved to status-im2, so it's better to keep replace-port here

@@ -50,8 +50,8 @@
colors/neutral-100-opa-70
colors/neutral-100-opa-0)
{:keys [background-color opacity]} animations
uri (http/replace-port (:image content)
(rf/sub [:mediaserver/port]))]
uri (chat-utils/replace-port (:image content)
Copy link
Member

Choose a reason for hiding this comment

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

it's definitely http utils, not chat

@J-Son89
Copy link
Contributor Author

J-Son89 commented Jun 23, 2023

@churik I will remove label for the moment as I have to make some small adjustments first. Thanks for adding it initially! :)

Copy link
Contributor

@OmarBasem OmarBasem left a comment

Choose a reason for hiding this comment

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

LGTM! Only comment I have is as Andrey mentioned that replace-port is not specific to chat.

@J-Son89 J-Son89 force-pushed the jc/refactor-1 branch 3 times, most recently from 54fdf16 to 2fab8bf Compare June 26, 2023 10:18
@status-im-auto
Copy link
Member

39% of end-end tests have passed

Total executed tests: 33
Failed tests: 20
Passed tests: 13
IDs of failed tests: 702733,703194,702859,702732,703133,702840,703086,702894,702783,702850,702786,702839,702838,702844,702843,702807,702731,702808,702845,702841 

Failed tests (20)

Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194
    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    2. test_community_one_image_send_reply, id: 702859

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    3. test_community_emoji_send_copy_paste_reply, id: 702840

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    4. test_community_mark_all_messages_as_read, id: 703086

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    5. test_community_contact_block_unblock_offline, id: 702894

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    6. test_community_mentions_push_notification, id: 702786

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    7. test_community_message_delete, id: 702839

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    8. test_community_message_send_check_timestamps_sender_username, id: 702838

    Device 2: Click until ChatMessageInput by accessibility id: chat-message-input will be presented
    Device 2: Find Button by xpath: //*[contains(@text, "View")]

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    Device sessions

    9. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    10. test_community_message_edit, id: 702843

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    11. test_community_leave, id: 702845

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    12. test_community_unread_messages_badge, id: 702841

    Test setup failed: critical/test_public_chat_browsing.py:449: in prepare_devices
        self.chat_2.element_by_text_part('View').click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[contains(@text, "View")]` is not found on the screen
    



    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_decline, id: 702850

    Device 1: Find Button by xpath: //*[contains(@text, 'receiver')]/ancestor::*[@content-desc='activity']/*[@content-desc="decline-contact-request"]
    Device 1: Find Button by accessibility id: close-activity-center

    medium/test_activity_center.py:60: in test_activity_center_contact_request_decline
        self.home_1.handle_contact_request(username=self.username_2, action='decline')
    ../views/home_view.py:327: in handle_contact_request
        self.close_activity_centre.click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 1: Button by accessibility id: `close-activity-center` is not found on the screen
    



    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133

    Device 1: Find Button by accessibility id: show-profiles
    Device 1: Tap on found: Button

    critical/test_public_chat_browsing.py:406: in test_restore_multiaccount_with_waku_backup_remove_switch
        self.errors.verify_no_errors()
    base_test_case.py:182: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Contact my-custom-nickname was not restored from backup!
    



    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_text_message_delete_push_disappear, id: 702733

    Device 2: Tap on found: Button
    Device 1: Getting PN by 'DELETE ME'

    critical/chats/test_1_1_public_chats.py:1210: in test_1_1_chat_text_message_delete_push_disappear
        self.errors.verify_no_errors()
    base_test_case.py:182: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Deleted message is shown in chat view for 1-1 chat 
    

    [[Message is being in status 'Sending' for a long time: https://github.com//issues/15385]]

    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

    # STEP: Device1 goes back online and checks that 1-1 chat will be fetched
    Device 1: Looking for a message by text: test message

    critical/chats/test_1_1_public_chats.py:1253: in test_1_1_chat_is_shown_message_sent_delivered_from_offline
        self.errors.verify_no_errors()
    base_test_case.py:182: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Message status was not delivered after back up online, it is "Sending"! 
    

    [[Issue with messages not being sent for a long time]]

    Device sessions

    3. test_1_1_chat_pin_messages, id: 702731

    Test is not run, e2e blocker  
    

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

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732

    Test is not run, e2e blocker  
    

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

    2. test_group_chat_join_send_text_messages_push, id: 702807

    Device 2: Find Button by accessibility id: close-activity-center
    Device 2: Tap on found: Button

    Test setup failed: critical/chats/test_group_chat.py:184: in prepare_devices
        self.loop.run_until_complete(
    /usr/lib/python3.10/asyncio/base_events.py:646: in run_until_complete
        return future.result()
    __init__.py:44: in run_in_parallel
        returns.append(await k)
    /usr/lib/python3.10/concurrent/futures/thread.py:58: in run
        result = self.fn(*self.args, **self.kwargs)
    ../views/home_view.py:327: in handle_contact_request
        self.close_activity_centre.click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 3: Button by accessibility id: `close-activity-center` is not found on the screen
    



    Device sessions

    3. test_group_chat_offline_pn, id: 702808

    Test setup failed: critical/chats/test_group_chat.py:184: in prepare_devices
        self.loop.run_until_complete(
    /usr/lib/python3.10/asyncio/base_events.py:646: in run_until_complete
        return future.result()
    __init__.py:44: in run_in_parallel
        returns.append(await k)
    /usr/lib/python3.10/concurrent/futures/thread.py:58: in run
        result = self.fn(*self.args, **self.kwargs)
    ../views/home_view.py:327: in handle_contact_request
        self.close_activity_centre.click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 3: Button by accessibility id: `close-activity-center` is not found on the screen
    



    Passed tests (13)

    Click to expand

    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

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

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

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_mentions, id: 702957
    Device sessions

    2. test_navigation_jump_to, id: 702936
    Device sessions

    3. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    4. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    @churik churik self-assigned this Jun 26, 2023
    @churik
    Copy link
    Member

    churik commented Jun 27, 2023

    @J-Son89 can you please check lint? Thanks!

    @J-Son89
    Copy link
    Contributor Author

    J-Son89 commented Jun 27, 2023

    thanks @churik - sorting now!

    @status-im-auto
    Copy link
    Member

    61% of end-end tests have passed

    Total executed tests: 33
    Failed tests: 13
    Passed tests: 20
    
    IDs of failed tests: 702807,702732,702783,702745,702851,702936,702731,702957,702958,702947,702808,702850,702894 
    

    Failed tests (13)

    Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

    # STEP: Device1 goes back online and checks that 1-1 chat will be fetched
    Device 1: Looking for a message by text: test message

    critical/chats/test_1_1_public_chats.py:1252: in test_1_1_chat_is_shown_message_sent_delivered_from_offline
        self.errors.verify_no_errors()
    base_test_case.py:182: 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 Sending after back up online! 
    

    [[Issue with messages not being sent for a long time]]

    Device sessions

    2. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745

    Device 2: Find MemberPhoto by xpath: //*[starts-with(@text,'profile_photo')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//*[@content-desc='user-avatar']
    Device 2: Image differs from template to 5.830125995710785 percents

    critical/chats/test_1_1_public_chats.py:1076: in test_1_1_chat_non_latin_messages_stack_update_profile_photo
        self.errors.verify_no_errors()
    base_test_case.py:182: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Image of user in 1-1 chat is too different from template!
    



    Device sessions

    3. test_1_1_chat_pin_messages, id: 702731

    Test is not run, e2e blocker  
    

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

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851

    Device 2: Find Button by accessibility id: new-chat-button
    Device 2: Find Button by accessibility id: add-a-contact

    medium/test_activity_center.py:87: in test_activity_center_contact_request_accept_swipe_mark_all_as_read
        self.home_2.add_contact(self.public_key_1, remove_from_contacts=True)
    ../views/home_view.py:359: in add_contact
        self.add_a_contact_chat_bottom_sheet_button.click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by accessibility id: `add-a-contact` is not found on the screen
    



    Device sessions

    2. test_activity_center_contact_request_decline, id: 702850

    Device 2: Tap on found: Button
    Device 2: Looking for activity center element: 'sender'

    medium/test_activity_center.py:73: in test_activity_center_contact_request_decline
        message_element.wait_for_element(30)
    ../views/base_element.py:117: in wait_for_element
        raise TimeoutException(
     Device `2`: `Button` by` xpath`: `//*[contains(@text, 'sender')]/ancestor::*[@content-desc='activity']//*[@content-desc="activity-message-body"]` is not found on the screen after wait_for_element
    



    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_join_send_text_messages_push, id: 702807

    Test setup failed: critical/chats/test_group_chat.py:148: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(3)
    base_test_case.py:302: in create_shared_drivers
        drivers = loop.run_until_complete(start_threads(quantity,
    /usr/lib/python3.10/asyncio/base_events.py:646: in run_until_complete
        return future.result()
    __init__.py:26: in start_threads
        returns[k] = await returns[k]
    /usr/lib/python3.10/concurrent/futures/thread.py:58: in run
        result = self.fn(*self.args, **self.kwargs)
    /home/jenkins/.local/lib/python3.10/site-packages/appium/webdriver/webdriver.py:267: in __init__
        super().__init__(
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:157: in __init__
        self.start_session(capabilities, browser_profile)
    /home/jenkins/.local/lib/python3.10/site-packages/appium/webdriver/webdriver.py:357: in start_session
        response = self.execute(RemoteCommand.NEW_SESSION, parameters)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:321: in execute
        self.error_handler.check_response(response)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py:242: in check_response
        raise exception_class(message, screen, stacktrace)
     Sauce could not start your job. For more information on what happened, please visit https://app.eu-central-1.saucelabs.com/tests/2578b7fc0bb54ab9a695e762b0f3a13a
    



    2. test_group_chat_pin_messages, id: 702732

    Test is not run, e2e blocker  
    

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

    3. test_group_chat_offline_pn, id: 702808

    Test setup failed: critical/chats/test_group_chat.py:148: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(3)
    base_test_case.py:302: in create_shared_drivers
        drivers = loop.run_until_complete(start_threads(quantity,
    /usr/lib/python3.10/asyncio/base_events.py:646: in run_until_complete
        return future.result()
    __init__.py:26: in start_threads
        returns[k] = await returns[k]
    /usr/lib/python3.10/concurrent/futures/thread.py:58: in run
        result = self.fn(*self.args, **self.kwargs)
    /home/jenkins/.local/lib/python3.10/site-packages/appium/webdriver/webdriver.py:267: in __init__
        super().__init__(
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:157: in __init__
        self.start_session(capabilities, browser_profile)
    /home/jenkins/.local/lib/python3.10/site-packages/appium/webdriver/webdriver.py:357: in start_session
        response = self.execute(RemoteCommand.NEW_SESSION, parameters)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py:321: in execute
        self.error_handler.check_response(response)
    /home/jenkins/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py:242: in check_response
        raise exception_class(message, screen, stacktrace)
     Sauce could not start your job. For more information on what happened, please visit https://app.eu-central-1.saucelabs.com/tests/2578b7fc0bb54ab9a695e762b0f3a13a
    



    Class TestCommunityMultipleDeviceMerged:

    1. test_community_contact_block_unblock_offline, id: 702894

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

    critical/test_public_chat_browsing.py:783: in test_community_contact_block_unblock_offline
        chat_element.find_element()
    ../views/chat_view.py:134: in find_element
        self.wait_for_visibility_of_element(20)
    ../views/base_element.py:135: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: ChatElementByText by xpath:`//*[starts-with(@text,'Hurray! unblocked')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936

    Test setup failed: medium/test_activity_center.py:124: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:308: 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'
    



    2. test_activity_center_mentions, id: 702957

    Test setup failed: medium/test_activity_center.py:124: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:308: 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'
    



    3. test_activity_center_admin_notification_accept_swipe, id: 702958

    Test setup failed: medium/test_activity_center.py:124: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:308: 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'
    



    4. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947

    Test setup failed: medium/test_activity_center.py:124: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(2)
    base_test_case.py:308: 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'
    



    Passed tests (20)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    2. test_1_1_chat_edit_message, id: 702855
    Device sessions

    3. test_1_1_chat_message_reaction, id: 702730
    Device sessions

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

    1. test_community_unread_messages_badge, id: 702841
    Device sessions

    2. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    3. test_community_several_images_send_reply, id: 703194
    Device sessions

    4. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    5. test_community_message_edit, id: 702843
    Device sessions

    6. test_community_message_delete, id: 702839
    Device sessions

    7. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    8. test_community_one_image_send_reply, id: 702859
    Device sessions

    9. test_community_mentions_push_notification, id: 702786
    Device sessions

    10. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    11. test_community_leave, id: 702845
    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

    @status-im-auto
    Copy link
    Member

    82% of end-end tests have passed

    Total executed tests: 33
    Failed tests: 6
    Passed tests: 27
    
    IDs of failed tests: 703086,702783,702732,702731,702745,703133 
    

    Failed tests (6)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_mark_all_messages_as_read, id: 703086

    Device 1: Find `Button` by `accessibility id`: `mark-as-read`
    Device 1: Tap on found: Button

    critical/test_public_chat_browsing.py:837: in test_community_mark_all_messages_as_read
        self.errors.verify_no_errors()
    base_test_case.py:182: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     New messages counter is not shown in home > Commmunity element
    



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

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133

    Device 1: Tap on found: ProfileSendMessageButton
    Device 1: Find Text by xpath: //*[@content-desc='user-avatar']/../following-sibling::android.widget.TextView

    critical/test_public_chat_browsing.py:391: in test_restore_multiaccount_with_waku_backup_remove_switch
        shown_name_text = chat.user_name_text_new_UI.text
    ../views/base_element.py:391: in text
        text = self.find_element().text
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 1: Text by xpath: `//*[@content-desc='user-avatar']/../following-sibling::android.widget.TextView` is not found on the screen
    



    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

    # STEP: Device1 goes back online and checks that 1-1 chat will be fetched
    Device 1: Looking for a message by text: test message

    critical/chats/test_1_1_public_chats.py:1252: in test_1_1_chat_is_shown_message_sent_delivered_from_offline
        self.errors.verify_no_errors()
    base_test_case.py:182: 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 Sending after back up online!
    E    Message was not delivered after resending from offline 
    

    [[Issue with messages not being sent for a long time]]

    Device sessions

    2. test_1_1_chat_pin_messages, id: 702731

    Test is not run, e2e blocker  
    

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

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745

    Device 2: Find MemberPhoto by xpath: //*[starts-with(@text,'profile_photo')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//*[@content-desc='user-avatar']
    Device 2: Image differs from template to 6.505366306678921 percents

    critical/chats/test_1_1_public_chats.py:1076: in test_1_1_chat_non_latin_messages_stack_update_profile_photo
        self.errors.verify_no_errors()
    base_test_case.py:182: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Image of user in 1-1 chat is too different from template!
    



    Device sessions

    Passed tests (27)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    2. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    3. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    4. test_community_message_edit, id: 702843
    Device sessions

    5. test_community_message_delete, id: 702839
    Device sessions

    6. test_community_unread_messages_badge, id: 702841
    Device sessions

    7. test_community_mentions_push_notification, id: 702786
    Device sessions

    8. test_community_one_image_send_reply, id: 702859
    Device sessions

    9. test_community_several_images_send_reply, id: 703194
    Device sessions

    10. test_community_leave, id: 702845
    Device sessions

    11. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    2. test_group_chat_offline_pn, id: 702808
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    2. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    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

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    2. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    3. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    4. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    5. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    6. test_1_1_chat_edit_message, id: 702855
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    3. test_activity_center_mentions, id: 702957
    Device sessions

    4. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    @J-Son89
    Copy link
    Contributor Author

    J-Son89 commented Jun 27, 2023

    @churik I can merge? :)

    @churik
    Copy link
    Member

    churik commented Jun 27, 2023

    @J-Son89 yes:)
    sorry for delay! some issues on Saucelab side

    @J-Son89
    Copy link
    Contributor Author

    J-Son89 commented Jun 27, 2023

    @J-Son89 yes:) sorry for delay! some issues on Saucelab side

    not at all, thanks! 🙌

    @J-Son89 J-Son89 merged commit e0e6937 into develop Jun 27, 2023
    @J-Son89 J-Son89 deleted the jc/refactor-1 branch June 27, 2023 14:11
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    No open projects
    Archived in project
    Development

    Successfully merging this pull request may close these issues.

    5 participants