Skip to content

Commit

Permalink
e2e: fix confirm tx tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Nov 2, 2022
1 parent ce17a16 commit 1f8f905
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/specs/metamask-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ describe('Metamask', () => {
it(`confirmMetamaskTransaction should confirm legacy transaction using default settings`, () => {
cy.get('#sendButton').click();
cy.confirmMetamaskTransaction().then(txData => {
expect(txData.recipientPublicAddress).to.be.not.empty;
expect(txData.confirmed).to.be.true;
});
});
Expand All @@ -281,6 +282,7 @@ describe('Metamask', () => {
it(`confirmMetamaskTransaction should confirm eip-1559 transaction using default settings`, () => {
cy.get('#sendEIP1559Button').click();
cy.confirmMetamaskTransaction().then(txData => {
expect(txData.recipientPublicAddress).to.be.not.empty;
expect(txData.confirmed).to.be.true;
});
});
Expand Down Expand Up @@ -315,7 +317,7 @@ describe('Metamask', () => {
it(`confirmMetamaskTransaction should confirm transaction for token creation (contract deployment) and check tx data`, () => {
cy.get('#createToken').click();
cy.confirmMetamaskTransaction().then(txData => {
expect(txData.recipientPublicAddress).to.be.not.empty;
expect(txData.recipientPublicAddress).to.not.exist;
expect(txData.networkName).to.be.not.empty;
expect(txData.customNonce).to.be.not.empty;
expect(txData.origin).to.be.not.empty;
Expand Down

0 comments on commit 1f8f905

Please sign in to comment.