From 2ec8f4d71d2830616931c07102869523125f8369 Mon Sep 17 00:00:00 2001 From: duckception Date: Wed, 6 Sep 2023 22:44:49 +0200 Subject: [PATCH] Add assertion to the new test --- tests/e2e/specs/metamask-spec.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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();