Skip to content

Including auth credentials in baseUrl causes browser to never connect in headless mode #1598

@cherednyk-tcm

Description

@cherednyk-tcm

Current behavior:

After update of cypress from 1.4.2 to 2.1.0 browser never connected in headless mode.

Console output

(Tests Starting)

Timed out waiting for the browser to connect. Retrying...

Timed out waiting for the browser to connect. Retrying again...

The browser never connected. Something is wrong. The tests cannot run. Aborting...

  (Tests Finished)

Steps to reproduce:

removed folders:
node_modules
cypress

removed @ types/cypress from package.json
changed cypress version in package.json from 1.4.2 to 2.1.0

Then installed dependencies and started tests in default headless mode

npm install

cypress run

Versions

OS: Windows 10 / macOS High Sierra v 10.13.4
Cypress: 2.1.0

same behavior on Windows and macOS

package.json

  "devDependencies": {
    "@ bahmutov/add-typescript-to-cypress": "2.0.0",
    "@ types/chai": "4.1.1",
    "@ types/chai-as-promised": "7.1.0",
    "@ types/mocha": "2.2.48",
    "@ types/node": "9.3.0",
    "chai": "4.1.2",
    "chai-as-promised": "7.1.1",
    "cypress": "2.1.0",
    "dotenv-safe": "5.0.1",
    "mocha": "5.0.5",
    "mochawesome": "3.0.2",
    "tslint": "5.9.1",
    "typescript": "2.8.1"
  }

cypress.json

{
  "integrationFolder": "dist/specs",
  "reporter": "mochawesome"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: regressionA bug that didn't appear until a specific Cy version releasetype: user experienceImprovements needed for UX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions