Skip to content

Browser refreshes twice on initial load #2542

Closed
@lmiller1990

Description

@lmiller1990

Current behavior:

When initially opening the UI using yarn cypress:open, for example, the tests start running, then the page refreshes. I made a youtube video about it:

https://www.youtube.com/watch?v=UzI5W9Lqm8A&feature=youtu.be

around 0:14 you can see the tests start running. Then at 0:18, for some reason, the browser (or iframe?) refreshes.

This causes the beforeEach hook to trigger twice, which is causing problems for me (reseeding the database twice).

One the UI is open and running, everything is fine. However, due to the beforeEach hook triggering twice, my first test run always fails.

Desired behavior:

The page should not refresh.

Steps to reproduce:

Open the Cypress interface. It seems consistent, at least on my machine.

Versions

Cypress: 3.1
MacOS: 10.13.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions