Skip to content

Issue with cy.server() in before #86

@jennifer-shehane

Description

@jennifer-shehane

I'm getting this error on every file using cy.server() after a test file has specified cy.server() in a before after other assertions have run before it.

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.

Example Code

describe("Base Describe", function() {
  return it("bars", function() {
    return expect(true).to.be.true;
  });
});

describe("Next Describe", function() {
  before(function() {
    return cy.server();
  });
  return it("foos", function() {
    return expect(true).to.be.true;
  });
});

Command Log Screenshot
screen shot 2015-11-24 at 8 35 19 am

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