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

WalletConnect show expired toast #20857

Merged
merged 6 commits into from
Jul 25, 2024
Merged

WalletConnect show expired toast #20857

merged 6 commits into from
Jul 25, 2024

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Jul 23, 2024

fixes #20758

Platforms

  • Android
  • iOS

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Jul 23, 2024

Jenkins Builds

Click to see older builds (31)
Commit #️⃣ Finished (UTC) Duration Platform Result
b1a1190 #3 2024-07-23 08:40:27 ~3 min tests 📄log
✔️ b1a1190 #3 2024-07-23 08:44:10 ~7 min android 🤖apk 📲
✔️ b1a1190 #3 2024-07-23 08:44:20 ~7 min android-e2e 🤖apk 📲
✔️ b1a1190 #3 2024-07-23 08:47:40 ~11 min ios 📱ipa 📲
✔️ dc4d554 #4 2024-07-23 09:57:44 ~4 min tests 📄log
✔️ dc4d554 #4 2024-07-23 10:01:09 ~8 min android-e2e 🤖apk 📲
✔️ dc4d554 #4 2024-07-23 10:01:14 ~8 min android 🤖apk 📲
✔️ dc4d554 #4 2024-07-23 10:02:57 ~10 min ios 📱ipa 📲
✔️ 63762af #5 2024-07-23 12:38:18 ~6 min android-e2e 🤖apk 📲
✔️ 63762af #5 2024-07-23 12:39:59 ~8 min android 🤖apk 📲
✔️ 63762af #5 2024-07-23 12:41:32 ~10 min tests 📄log
✔️ 63762af #5 2024-07-23 12:43:37 ~12 min ios 📱ipa 📲
✔️ bd80247 #6 2024-07-24 11:23:07 ~5 min tests 📄log
✔️ bd80247 #6 2024-07-24 11:24:33 ~6 min android-e2e 🤖apk 📲
✔️ bd80247 #6 2024-07-24 11:25:59 ~8 min android 🤖apk 📲
✔️ bd80247 #6 2024-07-24 11:28:24 ~10 min ios 📱ipa 📲
✔️ 34891f8 #8 2024-07-25 07:59:04 ~4 min tests 📄log
✔️ 34891f8 #8 2024-07-25 08:01:06 ~6 min android-e2e 🤖apk 📲
✔️ 34891f8 #8 2024-07-25 08:01:23 ~6 min android 🤖apk 📲
✔️ 34891f8 #8 2024-07-25 08:05:27 ~10 min ios 📱ipa 📲
✔️ cf1fd07 #9 2024-07-25 09:24:44 ~4 min tests 📄log
✔️ cf1fd07 #9 2024-07-25 09:26:51 ~6 min android 🤖apk 📲
✔️ cf1fd07 #9 2024-07-25 09:27:40 ~7 min android-e2e 🤖apk 📲
✔️ 54e8480 #11 2024-07-25 09:34:25 ~5 min tests 📄log
✔️ 54e8480 #11 2024-07-25 09:39:04 ~9 min android-e2e 🤖apk 📲
✔️ 54e8480 #11 2024-07-25 09:39:20 ~10 min android 🤖apk 📲
✔️ 54e8480 #11 2024-07-25 09:41:21 ~12 min ios 📱ipa 📲
✔️ 531b9dd #12 2024-07-25 10:17:23 ~4 min tests 📄log
✔️ 531b9dd #12 2024-07-25 10:19:31 ~6 min android-e2e 🤖apk 📲
✔️ 531b9dd #12 2024-07-25 10:20:18 ~7 min android 🤖apk 📲
✔️ 531b9dd #12 2024-07-25 10:23:08 ~10 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ e76a99a #13 2024-07-25 11:58:12 ~4 min tests 📄log
✔️ e76a99a #13 2024-07-25 12:02:00 ~8 min android-e2e 🤖apk 📲
✔️ e76a99a #13 2024-07-25 12:02:00 ~8 min android 🤖apk 📲
e76a99a #13 2024-07-25 12:08:18 ~15 min ios 📄log
e76a99a #14 2024-07-25 12:27:04 ~26 sec ios 📄log
e76a99a #15 2024-07-25 12:34:53 ~13 sec ios 📄log
e76a99a #16 2024-07-25 14:00:25 ~14 sec ios 📄log
✔️ c7f7ca1 #14 2024-07-25 14:05:15 ~4 min tests 📄log
✔️ c7f7ca1 #14 2024-07-25 14:08:48 ~8 min android-e2e 🤖apk 📲
✔️ c7f7ca1 #14 2024-07-25 14:08:53 ~8 min android 🤖apk 📲
✔️ c7f7ca1 #17 2024-07-25 14:11:23 ~10 min ios 📱ipa 📲

Copy link
Member

@clauxx clauxx left a comment

Choose a reason for hiding this comment

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

Looks good, but can we add the same for session proposals? I guess it would be the same issue there with expired requests.

@alwx
Copy link
Contributor Author

alwx commented Jul 23, 2024

@clauxx done!

@alwx alwx self-assigned this Jul 23, 2024
@status-im-auto
Copy link
Member

71% of end-end tests have passed

Total executed tests: 7
Failed tests: 1
Expected to fail tests: 1
Passed tests: 5
IDs of failed tests: 727229 
IDs of expected to fail tests: 727232 

Failed tests (1)

Click to expand
  • Rerun failed tests

  • Class TestWalletMultipleDevice:

    1. test_wallet_send_eth, id: 727229

    Device 2: Find `Text` by `xpath`: `//android.view.ViewGroup[@content-desc='container']/android.widget.TextView[@text='Ether']/../android.widget.TextView[3]`
    Device 2: `Text` is `0.01229 ETH`

    critical/test_wallet.py:156: in test_wallet_send_eth
        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))]))
     Sender balance is not updated on Etherscan, it is 0.4862 but expected to be 0.4863
    



    Expected to fail tests (1)

    Click to expand

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_watch_only_account, id: 727232

    Device 1: Find EditBox by accessibility id: add-address-to-watch
    Device 1: Type 0x8d2413447ff297d30bdc475f6d5cb00254685aae to EditBox

    critical/test_wallet.py:249: in test_wallet_add_remove_watch_only_account
        self.wallet_view.add_watch_only_account(address=address_to_watch, account_name=new_account_name)
    ../views/wallet_view.py:163: in add_watch_only_account
        self.account_has_activity_label.wait_for_visibility_of_element()
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: Text by accessibility id:`account-has-activity` is not found on the screen after wait_for_visibility_of_element 
    

    [[Missing networks in account address, https://github.com//issues/20166]]

    Device sessions

    Passed tests (5)

    Click to expand

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    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

    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

    :on-fail (fn [error]
    (log/error "Wallet Connect session approval failed"
    {:error error
    :event :wallet-connect/approve-session})
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Maybe you like this, maybe not, but we can get the event ID out of the coeffects, as we do here:

    @qoqobolo qoqobolo self-assigned this Jul 24, 2024
    @qoqobolo
    Copy link
    Contributor

    Thanks for the PR @alwx.
    One question shouldn't the text and the icon be red?🤔 Now it looks like a "success notification"
    Screenshot 2024-07-24 at 18 49 23

    @qoqobolo
    Copy link
    Contributor

    Thanks for the PR @alwx. One question shouldn't the text and the icon be red?🤔 Now it looks like a "success notification" Screenshot 2024-07-24 at 18 49 23

    @alwx we can fix it separately if needed.
    PR can be merged, thanks!

    @clauxx
    Copy link
    Member

    clauxx commented Jul 25, 2024

    Thanks for the PR @alwx. One question shouldn't the text and the icon be red?🤔 Now it looks like a "success notification" Screenshot 2024-07-24 at 18 49 23

    mm I guess should be a negative toast, but not a big problem I think.

    @qoqobolo
    Copy link
    Contributor

    ess should be a negative toast, but not a big problem I think.

    I'll log it for further discussion

    @alwx
    Copy link
    Contributor Author

    alwx commented Jul 25, 2024

    @qoqobolo I already fixed it, no need to spend time logging since it's a matter of one-word change (from :positive to :negative)

    @qoqobolo
    Copy link
    Contributor

    @qoqobolo I already fixed it, no need to spend time logging since it's a matter of one-word change (from :positive to :negative)

    Thank you. Should I check it manually?

    @alwx
    Copy link
    Contributor Author

    alwx commented Jul 25, 2024

    @qoqobolo there are very few things that might go wrong with it but you can check :) But I've also rebased it, and since there were some changes done to the component, might be better to just check if it still works as expected.

    @qoqobolo
    Copy link
    Contributor

    @alwx looks good, let's merge it!

    @alwx alwx merged commit 2ffbdac into develop Jul 25, 2024
    6 checks passed
    @alwx alwx deleted the bugfix/20758 branch July 25, 2024 14:11
    ilmotta pushed a commit that referenced this pull request Jul 28, 2024
    * WalletConnect show expired toast
    
    * Fixes
    
    * Fix
    
    * Post-rebase fix
    ilmotta added a commit that referenced this pull request Jul 30, 2024
    Revisions from develop:
    
    - 59ceddb develop origin/develop fix(wallet): fix bridge transactions (#20902)
    - 99ccbc3 Cover wallet send events with tests Part 2 #20411 #20533 (#20721)
    - 8c2d539 Enabling WalletConnect feature flag (#20906)
    - 67c83b1 fix(wallet): remove edit routes button in bridging (#20874)
    - 11a84ba feat(wallet): disable complex routing (#20901)
    - 1f5bb57 chore(wallet): disable bridging on unsupported tokens (#20846)
    - 4586f80 Add toggle in advanced settings for mobile data
    - 55c620e fix: create password for small screen (#20645)
    - 525609f Wallet Activity: transactions are not sorted by time #20808 (#20862)
    - 9065395 chore(settings): Disable telemetry option (#20881)
    - d27ab75 fix_:display group message using the new ui (#20787)
    - c6a1db6 ci: enable split apks & build only for arm64-v8a (#20683)
    - 73777e0 Ensure keycard account can send transaction after upgrading from v1 to v2 #20552 (#20845)
    - a6d3fc3 [#20524] fix: the missed keypairs are shown in the key pair list screen (#20888)
    - a671c70 fix broken screen and navigation when syncing fails (#20887)
    - a45991b 🥅 Filter connected dapps based on testnet mode, reject proposals and requests gracefully (#20799)
    - 2e9fa22 feat: wallet router v2 (#20631)
    - 737d8c4 rename sub to fix error when requesting to join community (#20868)
    - 3aa7e10 Sync process is blocked on Enabled notifications screen (#20883)
    - c1d2d44 perf: Fix app freeze after login (#20729)
    - 0fed811 e2e: updated testnet switching and added one test into smoke
    - 53c35cb fix(wallet): Linear gradient exception on invalid colors for watched account cards (#20854)
    - be82365 chore(settings)_: Remove testnet toggle from legacy advanced settings (#20875)
    - eae8a65 feat(wallet)_: Add beta info box in activity tab (#20873)
    - fe54a25 fix: not clearing network & web3-wallet on logout (#20886)
    - 15a4219 Reject wallet-connect request by dragging the modal down (#20763) (#20836)
    - 2ffbdac WalletConnect show expired toast (#20857)
    - 402eb83 fix Issue with scrolling WalletConnect transaction on Android (#20867)
    - ff88049 Fix WalletConnect header alignment on Android (#20860)
    - cee2124 WalletConnect no internet edge-cases (#20826)
    - 60ad7c8 chore(tests): New match-strict? cljs.test directive (#20825)
    - 4989c92 fix_: Adding own address as saved addresses (#20839)
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Archived in project
    Development

    Successfully merging this pull request may close these issues.

    WalletConnect show expired toast
    5 participants