Skip to content

Default to use the same browser for 'open' as 'run' #860

@Graham42

Description

@Graham42
  • Operating System: Ubuntu 16.04
  • Cypress Version: 1.0.3
  • Browser Version:
    • Chrome 62.0.3202.75
    • whatever version of Electron comes with Cypress 1.0.3

Is this a Feature or Bug?

Bug

Current behavior:

Tests that pass when running cypress with open can fail when using run due to browser differences.

Desired behavior:

Using default settings, if all tests pass in the live watch version (open) they should all pass when using run.

This can be solved by using the same browser for both so that issues can be easily debugged. Ideally use Chrome because that's more representative of the web than Electron. If the goal is to have a packaged browser with cypress, could look into puppeteer

How to reproduce:

Create a test for an app that uses the history api (ie uses react-router with Redirect component)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions