Skip to content

response to XHR request ignored by cypress #5000

@fmezas

Description

@fmezas

Current behavior:

XHR GET request reaches server and browser reports response (http code 200) in developer console but Cypress continues waiting for a response (see spinner next to (XHR) step in test and timeout message for cy.wait command)

image

Desired behavior:

Cypress should recognize that a response to the request was received and continue with the test.

Steps to reproduce: (app code and test code)

You can use https://github.com/fmezas/cypress-xhr-issue to reproduce the issue. It contains a toy server, client and cypress test, and instructions on how to run

Versions

Cypress: 3.4.1
operating system: OS-X 10.14.6
browser: Chrome Version 76.0.3809.100 (Official Build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions