synpress icon indicating copy to clipboard operation
synpress copied to clipboard

cy.setupMetamask() error when run tests locally

Open qaultron opened this issue 3 years ago • 0 comments

Hello! run tests locally with command "synpress open"

test

describe('User can load page', () => {
        before(() => {
          cy.setupMetamask();
          cy.changeMetamaskNetwork('localhost')
          cy.visit('/')
        });
        it('is expected to display a sussess message', () => {
          cy.get('[data-cy=title]').should('contain.text', 'MetaMask Detected')
        });
        it('is expected to display the local wallet address', () => {
          cy.get('[data-cy=address').should('contain.text', 'Your address is: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266')
        });
        it('is expected to display the local wallet  balance', () => {
          cy.get('[data-cy=balance').should('contain.text', 'Balance: 10000000000000000000000')
        });
      })
"@synthetixio/synpress": "^2.3.3-beta.0",
"cypress": "^10.8.0",

and i have this error Screenshot_6

I hope very much for your help

qaultron avatar Sep 27 '22 08:09 qaultron