Giter VIP home page Giter VIP logo

Comments (2)

YakovL avatar YakovL commented on June 9, 2024

By the way, "error in Cypress cli output" above is that for the second feature (I haven't committed the other one in the reference setup repo); for the first one it seems to differ from time to time, but now it's

  1. Wishlist
    "before all" hook for "Seeing the wishlist button":
    CypressError: cy.screenshot() timed out waiting 30000ms to complete.

Because this error occurred during a before all hook we are skipping all of the remaining tests.
at http://localhost:58865/__cypress/runner/cypress_runner.js:149497:81
at tryCatcher (http://localhost:58865/__cypress/runner/cypress_runner.js:18744:23)
at http://localhost:58865/__cypress/runner/cypress_runner.js:13866:41
at tryCatcher (http://localhost:58865/__cypress/runner/cypress_runner.js:18744:23)
at Promise._settlePromiseFromHandler (http://localhost:58865/__cypress/runner/cypress_runner.js:16679:31)
at Promise._settlePromise (http://localhost:58865/__cypress/runner/cypress_runner.js:16736:18)
at Promise._settlePromise0 (http://localhost:58865/__cypress/runner/cypress_runner.js:16781:10)
at Promise._settlePromises (http://localhost:58865/__cypress/runner/cypress_runner.js:16857:18)
at _drainQueueStep (http://localhost:58865/__cypress/runner/cypress_runner.js:13451:12)
at _drainQueue (http://localhost:58865/__cypress/runner/cypress_runner.js:13444:9)
at ../../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://localhost:58865/__cypress/runner/cypress_runner.js:13460:5)
at Async.drainQueues (http://localhost:58865/__cypress/runner/cypress_runner.js:13330:14)

I've also tried adding

userAgent: "synpress",
chromeWebSecurity: true,
defaultCommandTimeout: 30000,
pageLoadTimeout: 30000,
requestTimeout: 30000,

to config but it doesn't help.

Also, commenting out this feature doesn't affect the initial issue.

from synpress.

YakovL avatar YakovL commented on June 9, 2024

Another thing to note is, Metamask doesn't get configured in its Chrome tab, like it used to be. Presumably the network issue is not being connect to Playwright.

Oh, yeah! Looking for 9222 in Playwright repo, I've found a discussion which suggested that the browser should be run with the --remote-debugging-port=9222 option. Googling a little more, I've found that some suggest to set it via env (CYPRESS_REMOTE_DEBUGGING_PORT=9222). I've added it to my Cypress env, and the problem is gone!

But I don't have answers to these questions:

  • why it was working previously without this?
  • what value is used otherwise? none? how can I look it up?

I've also assumed that I may have set this env var at some point earlier when I was tinkering Cucumber/Cypress/Synpress and that has somehow cached and applied after I've clean up my setup. But when I've set this variable, run, removed it and run again, I get the errors again, so this doesn't seem to be a valid hypothesis.

from synpress.

Related Issues (20)

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.