vendredi 14 février 2020

My Cypress tests fail in Jenkins but pass locally

I am trying to run my e2e tests in Jenkins. But, my Jenkins job fails with this error:

│ Cypress: 4.0.1 │ │ Browser: Electron 78 (headless) │ │ Specs: 1 found (examples\test.js) │

Running: examples\test.js (1 of 1)

Timed out waiting for the browser to connect. Retrying...

Timed out waiting for the browser to connect. Retrying again...

The browser never connected. Something is wrong. The tests cannot run. Aborting...

The tests pass locally.

Firstly, I had this problem with Cypress 3.8.2.

I tried with these solutions, founded on Internet:

  • updating the version to 4.0.1
  • removing baseUrl from cypress.json file
  • following next steps: running Cypress, selecting "View App data" and deleting all files. Then, I closed Cypress and run it again.

But, these solutions couldn't help me.

Does anybody have any idea about this problem?

Aucun commentaire:

Enregistrer un commentaire