Current behavior:

Desired behavior:

Steps to reproduce: (app code and test code)
cypress.json
{
"env": {
"test_url": "http://localhost:3000/"
},
"baseUrl": "http://localhost:3000/"
}
Example test:
it('test url', function () {
cy.visit('/')
var baseUrl = Cypress.config('baseUrl')
//baseUrl = baseUrl + '/' // bug in Cypress - add slash
cy.url().should('eq', Cypress.env('test_url'))
cy.url().should('eq', baseUrl)
})
Versions
Windows, Cypress 3.1.5
Current behavior:
Desired behavior:
Steps to reproduce: (app code and test code)
cypress.json
{ "env": { "test_url": "http://localhost:3000/" }, "baseUrl": "http://localhost:3000/" }Example test:
Versions
Windows, Cypress 3.1.5