Skip to content

Commit

Permalink
chore: adding a test case for validating the switchToExtensionWindow …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
rabi-siddique committed Mar 4, 2024
1 parent 8f476eb commit 72bedd2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/e2e/specs/keplr/playwright-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,14 @@ describe('Playwright', () => {
expect(isActive).to.be.false;
});
});
it(`switchToExtensionWindow should properly switch active tab to keplr window`, () => {
cy.switchToExtensionWindow();
cy.isExtensionWindowActive().then(isActive => {
expect(isActive).to.be.true;
});
cy.isCypressWindowActive().then(isActive => {
expect(isActive).to.be.false;
});
});
});
});

0 comments on commit 72bedd2

Please sign in to comment.