Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with cy.server() in before #86

Closed
jennifer-shehane opened this issue Nov 23, 2015 · 1 comment
Closed

Issue with cy.server() in before #86

jennifer-shehane opened this issue Nov 23, 2015 · 1 comment

Comments

@jennifer-shehane
Copy link
Member

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

@jennifer-shehane jennifer-shehane changed the title Issue with cy.server() delay argument. Issue with cy.server() in before Nov 24, 2015
@brian-mann
Copy link
Member

Fixed in 0.12.6.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants