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

Error: INVALID_STATE_ERR - 0 when switching browser tabs during cy.route() commands running #34

Closed
jennifer-shehane opened this issue May 5, 2015 · 1 comment

Comments

@jennifer-shehane
Copy link
Member

When I switch browser tabs while running cypress tests during cy.route() commands, the test suite fails and throws: Error: INVALID_STATE_ERR - 0.

screen shot 2015-05-05 at 11 10 35 am

The stack trace leads to Sinon.js setResponseHeaders method:

    function verifyRequestOpened(xhr) {
        if (xhr.readyState != FakeXMLHttpRequest.OPENED) {
            throw new Error("INVALID_STATE_ERR - " + xhr.readyState);
        }
    }
@brian-mann
Copy link
Member

brian-mann commented Sep 16, 2015

Fixed in 0.11.3.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
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