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

Adding Keplr Intereactions for Wallet and Handle an Edge Case #3

Conversation

rabi-siddique
Copy link
Collaborator

@rabi-siddique rabi-siddique commented Feb 29, 2024

The PR adds Kepler Interactions for:

  • Creating a new Wallet using a Private Key.
  • Creating a new Wallet using an existing 24-word phrase.

And it handles an edge case illustrated below:
Scenario:
Test Case 1: The user has to connect with the wallet. The user clicks the connect wallet button. Popups show and the user approves the connection.
Test Case 2: The user is performing some operation. The user needs to connect to the wallet. The user clicks the connect wallet button. No popup shows ==> The user was already connected to the wallet as this happened in the first test case.

The PR addresses this edge case and handles scenarios where the user is already connected to the wallet.

@rabi-siddique rabi-siddique changed the title Handle Edge Case When User is Already Connected to a Wallet Adding Keplr Intereactions for Wallet and Handle an Edge Case Feb 29, 2024
@@ -361,7 +385,7 @@
retries = 0;
await page.bringToFront();
await module.exports.waitUntilStable(page);
return page;
return page

Check notice

Code scanning / CodeQL

Semicolon insertion Note

Avoid automated semicolon insertion (91% of all statements in
the enclosing function
have an explicit semicolon).
Copy link
Collaborator

Choose a reason for hiding this comment

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

☝️

rabi-siddique and others added 6 commits March 1, 2024 14:23
* feature: adding keplr interaction for creating an account using private key

* feature: keplr interaction for importing an existing wallet and creating a new wallet

* fix: fixed implementation of waitAndClickByText to perform exact matching

---------

Co-authored-by: Fraz Arshad <[email protected]>
…ady-connected-to-wallet' into rs-handling-popup-case-when-already-connected-to-wallet
Comment on lines +448 to +454
cy.contains('agoric1p2aqakv3ulz4qfy2nut86j9gx0dx0yw09h96md');
cy.contains('Make an Offer').click();
return cy.confirmTransaction().then(taskCompleted => {
expect(taskCompleted).to.be.true;
});
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

these functions should not contain logic related to our offer up dapp since these will be part of the synpress framework and will be exposed to all users

@@ -361,7 +385,7 @@
retries = 0;
await page.bringToFront();
await module.exports.waitUntilStable(page);
return page;
return page
Copy link
Collaborator

Choose a reason for hiding this comment

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

☝️

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

Successfully merging this pull request may close these issues.

2 participants