Skip to content

If the last record in the Command Log is a canceled or aborted XHR the test shows failure #14978

@bahmutov

Description

@bahmutov

Cypress v6.4.0

Look at the image below: 6 passing tests, no failures, BUT the last test shows the failure icon. I think this happens when the last command in that test is an aborted XHR request

Screen Shot 2021-02-08 at 2 39 59 PM

Reproduction

Clone https://github.com/bahmutov/ceceliacreates-nuxt/tree/problem branch problem

git checkout problem
npm install
npm run local

Click on the spec

Notice how this movie shows the status of the test keeps toggling depending on the XHR logs

failing-test-demo.mp4

At the end, the passing test becomes red again after a few more XHRs were cancelled

Metadata

Metadata

Assignees

Labels

pkg/reporterThis is due to an issue in the packages/reporter directorytype: regressionA bug that didn't appear until a specific Cy version releasev6.4.0 🐛Issue present since 6.4.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions