Skip to content

Commit

Permalink
e2e: test recipient address
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Nov 7, 2022
1 parent 4122f23 commit 20e0cd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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.networkName).to.be.not.empty;
expect(txData.customNonce).to.be.not.empty;
expect(txData.confirmed).to.be.true;
Expand All @@ -283,6 +284,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.networkName).to.be.not.empty;
expect(txData.customNonce).to.be.not.empty;
expect(txData.confirmed).to.be.true;
Expand Down Expand Up @@ -322,6 +324,7 @@ describe('Metamask', () => {
expect(txData.origin).to.be.not.empty;
expect(txData.bytes).to.be.not.empty;
expect(txData.hexData).to.be.not.empty;
expect(txData.recipientPublicAddress).to.be.not.empty;
expect(txData.networkName).to.be.not.empty;
expect(txData.customNonce).to.be.not.empty;
expect(txData.confirmed).to.be.true;
Expand Down

0 comments on commit 20e0cd1

Please sign in to comment.