Skip to content

Fails to connect to Chrome on first run after clearing Cypress app data #34868

Description

@MikeMcC399

Current behavior

If Cypress is started with npx cypress open --e2e --browser chrome and Cypress app data has been cleared according to Troubleshooting > Clear App Data, then Cypress fails to connect to Chrome.

A second attempt (without clearing app data) succeeds.

Desired behavior

Cypress should work on the first attempt after app data has been cleared.

Test code to reproduce

git clone --branch 34868-single-spec-cy-16 https://github.com/MikeMcC399/cypress-test-tiny
cd cypress-test-tiny
npm ci
rm -rf ~/.config/Cypress/cy/*
npx cypress open --e2e --browser chrome

Select "Continue"

Cypress Version

16.1.0

Debug Logs

cypress:server:browsers:cri-client connection to target 8D94800452D96DF7CD1AC91FACCB9F8B is terminated; rejecting Runtime.evaluate instead of enqueuing +8ms

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions