Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
drptbl authored May 28, 2024
2 parents 45d1d6d + 6ecd47f commit 1210c91
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synthetixio/synpress",
"version": "3.7.2-beta.9",
"version": "3.7.2-beta.10",
"packageManager": "[email protected]",
"description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.",
"keywords": [
Expand Down
12 changes: 12 additions & 0 deletions tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,18 @@ describe('Metamask', () => {
expect(approved).to.be.true;
});
});
it(`confirmMetamaskPermissionToSpend should work for serial transactions`, () => {
cy.get('#approveTokens').click();
cy.get('#approveTokens').click();
cy.confirmMetamaskPermissionToSpend({
shouldWaitForPopupClosure: true,
}).then(approved => {
expect(approved).to.be.true;
});
cy.confirmMetamaskPermissionToSpend().then(approved => {
expect(approved).to.be.true;
});
});
it(`rejectMetamaskToAddNetwork should reject permission to add network`, () => {
cy.get('#addEthereumChain').click();
cy.rejectMetamaskToAddNetwork().then(rejected => {
Expand Down

0 comments on commit 1210c91

Please sign in to comment.