Open
Description
Current behavior:
When you pass a config to cypress.run and it contains the baseUrl
param with the value null
(which is its default value: https://docs.cypress.io/guides/references/configuration.html#Global) or undefined
it throws the error:
Expected 'baseUrl' to be a fully qualified URL (starting with http:// or https://). Instead the value was: "null"
Desired behavior:
Should execute the tests just like if you didn't pass the baseUrl
param.
Steps to reproduce:
This is a code similar to the one I tried to run:
const cypress = require('cypress')
cypress
.run({
headed: false,
watchForFileChanges: false,
config: {
record: false,
video: false,
baseUrl: null, // <- the problem
},
})
Versions
cypress: 3.0.2
Operating system: macOS High Sierra (10.13.5)