|##
Below is the error I got in the Jenkins console:
**It looks like this is your first time using Cypress: 12.5.1
[STARTED] Task without title.
[SUCCESS] Task without title.
Opening Cypress…
[654:0209/131501.287696:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
There is a cypress.json file at the path: /home/jenkins/workspace/…/Smoke
Cypress version 10.0.0 no longer supports cypress.json.
Please run cypress open to launch the migration tool to migrate to cypress.config.{js,ts,mjs,cjs}.**
But I installed in my Docker Component:
Installing Cypress (version: 8.7.0)
[STARTED] Task without title.
[SUCCESS] Task without title.
[STARTED] Task without title.
[SUCCESS] Task without title.
[STARTED] Task without title.
[SUCCESS] Task without title.
You can now open Cypress by running: node_modules/.bin/cypress open
Below are the versions installed:
git --version # ‘git version 1.8.3.1’
npm --version
6.14.16
node --version
v14.19.0
Below are the commands I used to install dependencies:
npm --version
node --version
npm ci --registry
npm i cypress@8.7.0
npm cypress -v
and below is the command used to run my spec:
npx cypress run --spec …/…/…/file_name.js
My code is also written in 8.7.0 and it cloned properly to Docker from GitHUB.
But when I am running one of my test case using above mentioned command I am getting the above error.
Can you please suggest to resolve this without upgrading my Cypress version, thank you.!|
Hi, Thank you for the response. Please see below the error message which I am getting. Please suggest and let me know If u need any more information. Thank you.!
npx cypress@8.7.0 run --browser chrome --spec cypress/integration//.js
It looks like this is your first time using Cypress: 8.7.0
[STARTED] Task without title.
[SUCCESS] Task without title.
Opening Cypress…
[439:0214/092913.843768:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[439:0214/092913.845438:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[439:0214/092913.845462:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[592:0214/092913.860870:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is swiftshader
The plugins file is missing or invalid.
Your pluginsFile is set to /home/jenkins/workspace/***/***/cypress/plugins/index.js, but either the file is missing, it contains a syntax error, or threw an error when required. The pluginsFile must be a .js, .ts, or .coffee file.
Or you might have renamed the extension of your pluginsFile. If that’s the case, restart the test runner.
Please fix this, or set pluginsFile to false if a plugins file is not necessary for your project.
/home/jenkins/.cache/Cypress/8.7.0/Cypress/resources/app/packages/server/lib/plugins/child/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
at Module._load (internal/modules/cjs/loader.js:737:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:964:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/jenkins/workspace///cypress/plugins/index.js:20:12)
at Module._compile (internal/modules/cjs/loader.js:1083:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1113:10)
at Module.load (internal/modules/cjs/loader.js:940:32)
at Module._load (internal/modules/cjs/loader.js:781:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:964:19)
at require (internal/modules/cjs/helpers.js:88:18)
at runPlugins (/home/jenkins/.cache/Cypress/8.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:175:15)
at Object. (/home/jenkins/.cache/Cypress/8.7.0/Cypress/resources/app/packages/server/lib/plugins/child/index.js:8:25)
at Module._compile (internal/modules/cjs/loader.js:1083:30)
=============================================