Skip to content

Commit

Permalink
Add assertion to the new test
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 6, 2023
1 parent 54002fe commit 2ec8f4d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2ec8f4d

Please sign in to comment.