Skip to content

Errors thrown in before:browser:launch causes Cypress to hang when launching the browser #32775

@ryanthemanuel

Description

@ryanthemanuel

Current behavior

Cypress hangs without any indication why when there is an error thrown in before:browser:launch.

Desired behavior

Cypress should not hang. We should get feedback in the launcher that the browser failed to launch.

Test code to reproduce

...
      on('before:browser:launch', (browser = {}, launchOptions) => {
        launchOptions.x.a = 'y'
      })
...

Cypress Version

10.0.0

Debug Logs

Other

No response

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