You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test.js test should run in a chrome browser (as specified by the --browser chrome option in package.json).
What is actually happening?
The local server starts up but the test is not being run, and no error/log information is printed to console.
I believe this is due to a cypress bug where you can't change the baseUrl property of the --config option whilst using the --browser chrome option.
See: cypress-io/cypress#2518
We can work around this in cypress by specifying the baseUrl in cypress.json, and not using the --config baseUrl option. The problem here is that cli-plugin-e2e-cypress always uses the --config option with the baseUrl set to the server url (see). If you specify the baseUrl in cypress.json and then comment out the default baseUrl option in index.js, then the test runs as expected.
e.g.
This isn't a huge issue if using the GUI, as you can simply select which browser to use, but I want to run cypress in headless mode with the chrome browser.
e.g.
Version
3.6.3
Reproduction link
https://github.com/lachiesainsbury/cypress-browser-chrome
Environment info
Steps to reproduce
In root directory:
npm install
npm run test:e2e
What is expected?
The
test.js
test should run in a chrome browser (as specified by the--browser chrome
option in package.json).What is actually happening?
The local server starts up but the test is not being run, and no error/log information is printed to console.
I believe this is due to a cypress bug where you can't change the baseUrl property of the
--config
option whilst using the--browser chrome
option.See:
cypress-io/cypress#2518
We can work around this in cypress by specifying the baseUrl in
cypress.json
, and not using the--config baseUrl
option. The problem here is thatcli-plugin-e2e-cypress
always uses the--config
option with the baseUrl set to the server url (see). If you specify the baseUrl incypress.json
and then comment out the default baseUrl option inindex.js
, then the test runs as expected.e.g.
This isn't a huge issue if using the GUI, as you can simply select which browser to use, but I want to run cypress in headless mode with the chrome browser.
e.g.
The text was updated successfully, but these errors were encountered: