You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cypress.fixture(fileName, fileEncoding) breaks when loading a 500MB csv file.
Desired behavior
Be able to load a ~500MB fixture.
Test code to reproduce
.js
import{Given,Then}from'cypress-cucumber-preprocessor/steps'Given('Load file {string} and {string}',(fileName,fileEncoding)=>{cy.fixture(fileName,fileEncoding).then(v=>console.log(v))})Then('File should be loaded',loadedFile=>{returntrue;})
.feature
Feature: Test
Scenario Outline: Load large file
Given Load file '<file>' and '<encoding>'
Then File should be loaded
Examples:
| file | encoding |
| tuto_DB_italy.csv | utf8 |
In Cypress 9.0.0, we added the null encoding, which helps significantly when dealing with large fixtures and files. This transfers the data as an ArrayBuffer rather than a base64 encoded string. https://docs.cypress.io/api/commands/fixture#Arguments
Cypress still tends to encounter issues with files in the gigabyte range, but 500mb should now be doable. Going to close this issue as resolved, feel free to let us know if the above still isn't working for you.
It's possible you may still run into #7365, but hopefully this is at least a step forward!
Current behavior
Cypress.fixture(fileName, fileEncoding)
breaks when loading a 500MB csv file.Desired behavior
Be able to load a ~500MB fixture.
Test code to reproduce
.js
.feature
use any .csv file that size is at least 500MB
Versions
dependencies:
OS: MacOs Catalina 10.15.7
Browser: Chrome 91
The text was updated successfully, but these errors were encountered: