Skip to content

Reading a binary fixture get it's content changed #19344

@andrealmieda

Description

@andrealmieda

Current behavior

In the process of updating from cypress@8 to cypress@9, It was noticed that intercepting a binary file had changed, making the intercepted file to be corrupted (not in the expected format).

Here's a screenshot of the update and the files diffing
Screenshot 2021-12-13 at 11 19 09

Desired behavior

When reading a binary fixture the content of it shouldn't be changed when serving it (via cy.intercept)

Test code to reproduce

https://github.com/andrealmieda/react-cypress-boilerplate

I created a small test to download the intercepted binary file and then manually check it on the terminal

Cypress Version

9.1.1

Other

No response

Metadata

Metadata

Labels

pkg/driverThis is due to an issue in the packages/driver directorytype: bugtype: regressionA bug that didn't appear until a specific Cy version release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions