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: resolve UI glitches for chat, contacts, and keycard #21946

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

seanstrom
Copy link
Member

fixes #21477
fixes #21911

Summary

  • This PR attempts to resolve some UI glitches related to group-chat system messages, contact nickname editing, the disclaimer text for the keycard migration flow.
    • I came across the edit-nickname drawer not having the correct drawer title, it was "Add nickname" instead of "Edit nickname".

Platforms

  • Android
  • iOS

Areas that may be impacted

Functional

  • group chats
  • edit contact nickname
  • disclaimer text for keycard flow

Steps to test

Edit contact nickname title

  • Open Status app
  • Open a contact, add a nickname, edit a nickname

Group chat system messages

Reproduction steps mentioned here: #21477

Keycard confirm backup-phrase disclaimer text

Reproduction steps mentioned here: #21911

Screenshots of Changes

Edit contact nickname drawer title IMG_0028
Group chat system messages Screenshot 2025-01-17 at 05 32 01
Keycard confirm backup phrase disclaimer text IMG_0027

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Jan 17, 2025

Jenkins Builds

Click to see older builds (12)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 70659f3 #1 2025-01-17 08:33:19 ~5 min tests 📄log
✔️ 70659f3 #1 2025-01-17 08:35:25 ~7 min android-e2e 🤖apk 📲
✔️ 70659f3 #1 2025-01-17 08:36:54 ~8 min android 🤖apk 📲
✔️ 70659f3 #1 2025-01-17 08:38:50 ~10 min ios 📱ipa 📲
✔️ e220bc9 #2 2025-01-18 06:03:57 ~5 min tests 📄log
✔️ e220bc9 #2 2025-01-18 06:06:14 ~8 min android-e2e 🤖apk 📲
✔️ e220bc9 #2 2025-01-18 06:06:46 ~8 min android 🤖apk 📲
✔️ e220bc9 #2 2025-01-18 06:08:25 ~10 min ios 📱ipa 📲
✔️ 30273b0 #3 2025-01-20 14:16:46 ~4 min tests 📄log
✔️ 30273b0 #3 2025-01-20 14:20:06 ~7 min android-e2e 🤖apk 📲
✔️ 30273b0 #3 2025-01-20 14:20:38 ~8 min android 🤖apk 📲
✔️ 30273b0 #3 2025-01-20 14:22:36 ~10 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ cf2994f #4 2025-01-22 14:16:38 ~5 min tests 📄log
✔️ cf2994f #4 2025-01-22 14:19:41 ~8 min android 🤖apk 📲
✔️ cf2994f #4 2025-01-22 14:20:05 ~8 min android-e2e 🤖apk 📲
✔️ cf2994f #4 2025-01-22 14:25:45 ~14 min ios 📱ipa 📲
✔️ 0d031f0 #5 2025-01-23 09:29:57 ~4 min tests 📄log
✔️ 0d031f0 #5 2025-01-23 09:33:05 ~7 min android-e2e 🤖apk 📲
✔️ 0d031f0 #5 2025-01-23 09:33:36 ~8 min android 🤖apk 📲

@seanstrom seanstrom force-pushed the seanstrom/fix-ui-glitches branch from 70659f3 to e220bc9 Compare January 18, 2025 05:57
@status-im-auto
Copy link
Member

88% of end-end tests have passed

Total executed tests: 8
Failed tests: 1
Expected to fail tests: 0
Passed tests: 7
IDs of failed tests: 702843 

Failed tests (1)

Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_edit, id: 702843

    Device 1: Wait for text element `EmojisNumber` to be equal to `1`
    Device 1: Find `EmojisNumber` by `xpath`: `//*[starts-with(@text,'Message AFTER edit 2 (Edited)')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-2']/android.widget.TextView[2]`

    critical/chats/test_public_chat_browsing.py:380: in test_community_message_edit
        self.errors.verify_no_errors()
    base_test_case.py:176: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Message reaction is not shown for the sender
    



    Device sessions

    Passed tests (7)

    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_profile_switch, id: 703133
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230
    2. test_wallet_send_eth, id: 727229

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    2. test_wallet_balance_mainnet, id: 740490

    @seanstrom seanstrom force-pushed the seanstrom/fix-ui-glitches branch from 30273b0 to cf2994f Compare January 22, 2025 14:11
    @seanstrom
    Copy link
    Member Author

    @mariia-skrypnyk I've rebased this PR and tried manually testing issue #21911 on the Status-PR app, and the issue seems to be fixed since the text is no longer exceeding the boundary. Are you seeing different results? If so, can you share your device details please. 🙏

    @seanstrom seanstrom force-pushed the seanstrom/fix-ui-glitches branch from cf2994f to 0d031f0 Compare January 23, 2025 09:25
    @mariia-skrypnyk
    Copy link

    Hi @seanstrom !

    Thanks for your brilliant fixes.
    Those check-boxes were my notes what was tested and what I was working on.
    No issues there.
    I will rerun tests and let you know.

    @status-im-auto
    Copy link
    Member

    75% of end-end tests have passed

    Total executed tests: 8
    Failed tests: 2
    Expected to fail tests: 0
    Passed tests: 6
    
    IDs of failed tests: 702745,702843 
    

    Failed tests (2)

    Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUi:

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

    critical/chats/test_1_1_public_chats.py:323: in test_1_1_chat_non_latin_messages_stack_update_profile_photo
        self.errors.verify_no_errors()
    base_test_case.py:176: 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

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_edit, id: 702843

    Device 2: Click until Button by accessibility id: close-activity-center will be presented
    Device 2: Find Button by accessibility id: open-activity-center-button

    Test setup failed: critical/chats/test_public_chat_browsing.py:318: in prepare_devices
        self.home_2.handle_contact_request(self.username_1)
    ../views/home_view.py:383: in handle_contact_request
        self.open_activity_center_button.click_until_presence_of_element(self.close_activity_centre)
    ../views/base_element.py:106: in click_until_presence_of_element
        self.find_element().click()
    ../views/base_element.py:78: in find_element
        raise NoSuchElementException(
     Device 2: Button by accessibility id: `open-activity-center-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

    Passed tests (6)

    Click to expand

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    2. test_wallet_balance_mainnet, id: 740490

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
    Device sessions

    2. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230
    2. test_wallet_send_eth, id: 727229

    @status-im-auto
    Copy link
    Member

    100% of end-end tests have passed

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

    Passed tests (2)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_edit, id: 702843
    Device sessions

    @mariia-skrypnyk
    Copy link

    @seanstrom e2e are 👌
    PR can be merged!

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Status: MERGE
    7 participants