Skip to content

Err thrown when multiple cy.server() in one file's before #80

@jennifer-shehane

Description

@jennifer-shehane

When I have a file that has multiple cy.server() in seperate parent-level describe's before, this error is thrown on second cy.server:

CypressError: The XHR server is unavailable or missing. This should never happen and likely is a bug. Open an issue if you see this message.

Screenshot of Command Log
screen shot 2015-11-02 at 12 31 34 pm

Example Code

describe "Model 1 [279]", ->
  before ->
    cy
      .visit("views/index.html")
      .server()

  it "foo bars [27a]", ->
    expect(true).to.be.true

describe "Model 2 [27b]", ->
  before ->
    cy
      .visit("views/index.html")
      .server()

  it "foo bars [27c]", ->
    expect(true).to.be.true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions