Code Monkey home page Code Monkey logo

cypress-metamask-plugin's Introduction

cypress-metamask-plugin's People

Contributors

anthanh avatar danivm avatar dependabot[bot] avatar drptbl avatar einaralex avatar eulerbeat5 avatar gitter-badger avatar lift0xff avatar maxhoheiser avatar noahlitvin avatar pcardosolei avatar shawnwang0715 avatar stylishtriangles avatar vigneshka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cypress-metamask-plugin's Issues

Puppeteer startup question

yo yo

for lack of a better communication method I'll use issues :-)

 if (process.env.CI) {
        arguments_.args.push(
          `--disable-extensions-except=${metamaskPath}`,
          `--load-extension=${metamaskPath}`,
        );
      }

just curious... any reason for adding this snippet to plugins/index.js? I see that Synpress doesn't do that.

Puppeteer connect fails in Docker container

Hi!

I've managed to get connecting and importing working on my native OS but I get issues when running dockerized.

       "before all" hook for "Printing addresses":
     CypressError: `cy.task('setupMetamask')` failed with the following error:

> Puppeteer failed to initialize the metamask wallet. Cannot read properties of undefined (reading 'waitForTimeout')

https://on.cypress.io/api/task

Because this error occurred during a `before all` hook we are skipping all of the remaining tests.

Issue occurs below where waitForTimeout fails between metamaskWindow() is undefined which happens because assignWindows fails because the internal puppeteer.pages() call returns 0 pages. I don't know whether this is an issue with the pages() call itself, or the puppeteer.connect() call inside your puppeteer.init() function. Is this something you've seen before.

        await puppeteer.init();
        await puppeteer.assignWindows();
        await puppeteer.assignActiveTabName('metamask');

        // sometimes it will fail here.
        await puppeteer.metamaskWindow().waitForTimeout(10000);

Thanks in advance for any help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.