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 WalletConnect initialisation after logout #20886

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

clauxx
Copy link
Member

@clauxx clauxx commented Jul 25, 2024

fixes #20884

Summary

Not clearing the network and WalletConnect sdk when logging out.

status: ready

@clauxx clauxx self-assigned this Jul 25, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Jul 25, 2024

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ aa688f4 #1 2024-07-25 12:32:13 ~5 min tests 📄log
✔️ aa688f4 #1 2024-07-25 12:33:37 ~6 min android-e2e 🤖apk 📲
✔️ aa688f4 #1 2024-07-25 12:35:42 ~8 min android 🤖apk 📲
aa688f4 #1 2024-07-25 12:40:30 ~13 min ios 📄log
aa688f4 #2 2024-07-25 12:54:41 ~31 sec ios 📄log
✔️ aa688f4 #3 2024-07-25 14:19:14 ~9 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ be9d80f #2 2024-07-25 14:38:08 ~4 min tests 📄log
✔️ be9d80f #2 2024-07-25 14:40:28 ~7 min android-e2e 🤖apk 📲
✔️ be9d80f #2 2024-07-25 14:40:46 ~7 min android 🤖apk 📲
✔️ be9d80f #4 2024-07-25 14:42:58 ~9 min ios 📱ipa 📲
✔️ 34ba797 #3 2024-07-25 15:29:04 ~4 min tests 📄log
✔️ 34ba797 #3 2024-07-25 15:31:00 ~6 min android-e2e 🤖apk 📲
✔️ 34ba797 #3 2024-07-25 15:31:09 ~6 min android 🤖apk 📲
✔️ 34ba797 #5 2024-07-25 15:33:44 ~8 min ios 📱ipa 📲

@clauxx
Copy link
Member Author

clauxx commented Jul 25, 2024

@qoqobolo Would be best to get this one in first, so other PRs can rebase and see if the regressions there are fixed.

@qoqobolo qoqobolo self-assigned this Jul 25, 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: 727230 
IDs of expected to fail tests: 727232 

Failed tests (1)

Click to expand
  • Rerun failed tests

  • Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230

    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.01749 ETH`

    critical/test_wallet.py:184: in test_wallet_send_asset_from_drawer
        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.4793 but expected to be 0.4794
    



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

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    Device sessions

    Class TestWalletMultipleDevice:

    1. test_wallet_send_eth, id: 727229

    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

    @qoqobolo
    Copy link
    Contributor

    qoqobolo commented Jul 25, 2024

    @clauxx could you clarify one moment in the steps please?

    1. Open status
    2. Log in and try to connect (should work)
    3. Log out (without closing the app)
    4. Log into the same account and try to connect
    5. After scanning nothing happens
    

    How can I make step 4 if I am already connected to the dapp in step 2?
    Do you mean connect to another dapp / or should I not press Connect in step 2 / or should I have disconnected before logout?

    @qoqobolo
    Copy link
    Contributor

    The good news is that now I can connect on the first try without reopening the app and refreshing the dapp page 👍

    @qoqobolo
    Copy link
    Contributor

    You mentioned that #20794 should be fixed here but it's not.
    The issue is still reproducible

    @qoqobolo
    Copy link
    Contributor

    Thanks a lot for the fix @clauxx!
    Tested connect and basic flows - LGTM.

    @clauxx clauxx merged commit fe54a25 into develop Jul 25, 2024
    6 checks passed
    @clauxx clauxx deleted the fix/wc-initialisation branch July 25, 2024 15:37
    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.

    Can't connect to dapp after logging out and logging in again
    4 participants