KittyGiraudel / cypress-5570

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cypress #5570 — Issue reproduction

  1. Install node_modules at the root of the project.
npm install
  1. Open the Cypress app from the root of the project (with the --global option), with the configuration file located at src/config/cypress.json (with the --config-file option).
$(npm bin)/cypress open --config-file src/config/cypress.json --global
  1. In the Cypress app, locate the test project and open it.

Locate and open the test project in the Cypress app

  1. Check the “Settings” tab, and notice while the path to the configuration file is correctly displayed (src/config/cypress.json), its content is not loaded.

Notice the configuration is not loaded

  1. To confirm that the --global option is the problem, run the same command without the flag (and with adjusted path to configuration) from within the project folder (src/projects/test).
cd src/projects/test
$(npm bin)/cypress open --config-file ../../config/cypress.json

Then notice the configuration is properly loaded:

Notice the configuration is correctly loaded

About


Languages

Language:JavaScript 100.0%