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

[💡 Feature]: Autoconnect a newly switched account to the dapp if one was connected previously #914

Open
dalechyn opened this issue Oct 4, 2023 · 1 comment

Comments

@dalechyn
Copy link

dalechyn commented Oct 4, 2023

Is your feature request related to a problem?

With metamask, with one account connected to a dApp it's possible to connect another account straight away, specifically replacing the previous account with a new one.

Export-1696439428821.mp4

But apparently, it's not available to do with Synpress.

Such specifically blocks me from testing the dApp behaviour when an account is replaced

Describe the solution you'd like.

Adding a parameter that would control the account replacement behaviour would be nice to have within the switchMetamaskAccount function.

Current API:

    switchMetamaskAccount(
      accountNameOrAccountNumber: string | number,
    ): Chainable<boolean>;

Proposed API:

    switchMetamaskAccount(
      accountNameOrAccountNumber: string | number,
      autoConnect?: boolean
    ): Chainable<boolean>;

Describe alternatives you've considered.

No response

Additional context

No response

@dalechyn dalechyn changed the title [💡 Feature]: Connect [💡 Feature]: Autoconnect a newly switched account to the dapp if one was connected previously Oct 4, 2023
@mehmetcansahin
Copy link

i'm facing same issue, any resolve have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants