Good afternoon. Sorry for disturbing you. Can you help me? I have a project where I previously had 2 json files for testing, production and cypress.json for staging as default. If I need to use the command for example npx cypress open --env configFile=test - where it was launched with parameters for the test environment. After the update on new version cypress - we have cypress.config.js.In docs I found command as cypress run --config-file tests/cypress.config.js
In my project by path cypress/config i created folder test and put cypress.config.js for test environment. I've tried use command as
npm run cypress open --config-file test/cypress.config.js,
npm run cypress:open --config-file cypress/config/tests/cypress.config.js,
npm run cypress:open --config-file D:\autotestUI\cypress\config\test\test.config.js - i renamed cypress.config.js on test.config.js
npx cypress open --env configFile=D:\autotestUI\cypress\config\test\test.config.js
After it was launched in runner i had parameters from default cypress.config.js - not what I needed
Sorry, Can you help me with running for different config files? Thanks