Skip to content

My test passes cypress open but fails with cypress run #1011

@vince91

Description

@vince91
  • Operating System: macOS 10.13.1
  • Cypress Version: 1.1.3
  • Browser Version: Chrome 62.0.3202.94

Is this a Feature or Bug?

bug

Current behavior:

My test passes when I launch it with cypress open but fails with cypress run.

Desired behavior:

My test passes both cypress open and cypress run.

How to reproduce:

Repository: https://github.com/vince91/cypress-react-select

yarn install
yarn cypress:run
yarn cypress:open

Test code:

describe('react-select', () => {
    it('should be able to select an item', () => {
        cy.visit('http://jedwatson.github.io/react-select/');
        cy.get('.Select').first().click();
        cy.get('.Select-option').first().click();
        cy.get('.Select-value-label').first().should('contain', 'Australian Capital Territory');
    });
});

Additional Info (images, stack traces, etc)

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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