diff --git a/package.json b/package.json index 76a988c93..428369f11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@synthetixio/synpress", - "version": "3.7.2-beta.9", + "version": "3.7.2-beta.10", "packageManager": "pnpm@9.1.3", "description": "Synpress is e2e testing framework based around Cypress.io & playwright with included MetaMask support. Test your dapps with ease.", "keywords": [ diff --git a/tests/e2e/specs/metamask-spec.js b/tests/e2e/specs/metamask-spec.js index 8e1fe6fc5..354f74936 100644 --- a/tests/e2e/specs/metamask-spec.js +++ b/tests/e2e/specs/metamask-spec.js @@ -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 => {