Skip to content

Commit

Permalink
chore: change selector for Approve button on connecting with wallet UI
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Mar 4, 2024
1 parent fac32cd commit 33c39ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pages/keplr/notification-page.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const approveButton = `button[type="button"]`;
const approveButton = `button`;

module.exports.notificationPageElements = {
approveButton,
Expand Down
22 changes: 13 additions & 9 deletions tests/e2e/specs/keplr/keplr-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ describe('Keplr', () => {
});
});
});
it(`should disconnect the wallet from all the connected DAPPs`, () => {
cy.switchToExtensionWindow().then(() => {
cy.disconnectWalletFromDapp().then(taskCompleted => {
expect(taskCompleted).to.be.true;
});
});
});
it(`should complete Keplr connect with wallet, and confirm transaction after creating a new wallet using 24 word phrase`, () => {
cy.switchToExtensionWindow().then(() => {
cy.setupWallet(
Expand All @@ -28,9 +35,13 @@ describe('Keplr', () => {

cy.visit('/');
cy.contains('Connect Wallet').click();
cy.contains('Make an Offer').click();
cy.confirmTransaction().then(taskCompleted => {
cy.acceptAccess().then(taskCompleted => {
expect(taskCompleted).to.be.true;

cy.contains('Make an Offer').click();
cy.confirmTransaction().then(taskCompleted => {
expect(taskCompleted).to.be.true;
});
});
});
});
Expand All @@ -44,12 +55,5 @@ describe('Keplr', () => {
});
});
});
it(`should disconnect the wallet from all the connected DAPPs`, () => {
cy.switchToExtensionWindow().then(() => {
cy.disconnectWalletFromDapp().then(taskCompleted => {
expect(taskCompleted).to.be.true;
});
});
});
});
});

0 comments on commit 33c39ff

Please sign in to comment.