diff --git a/tests/e2e/specs/metamask-spec.js b/tests/e2e/specs/metamask-spec.js index dc632ee4a..4fb810524 100644 --- a/tests/e2e/specs/metamask-spec.js +++ b/tests/e2e/specs/metamask-spec.js @@ -342,11 +342,13 @@ describe('Metamask', () => { }); }); it(`confirmMetamaskTransaction should confirm legacy ETH transfer to yourself`, () => { - cy.get('#fromInput').type('0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266') - cy.get('#toInput').type('0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266') - cy.get('#amountInput').type('0x38D7EA4C68000') // 0.001 ETH - cy.get("#submitForm").click(); - cy.confirmMetamaskTransaction() + cy.get('#fromInput').type('0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'); + cy.get('#toInput').type('0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'); + cy.get('#amountInput').type('0x38D7EA4C68000'); // 0.001 ETH + cy.get('#submitForm').click(); + cy.confirmMetamaskTransaction().then(txData => { + expect(txData.recipientPublicAddress).to.be.equal('Account 1'); + }); }); it(`confirmMetamaskTransaction should confirm eip-1559 transaction using default settings`, () => { cy.get('#sendEIP1559Button').click();