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
Adding null as an encoding argument to cy.readFile command results in TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
It seems that null option somehow bypasses the timeout and waiting for file to be downloaded, because as soon as I add 1 sec wait, the command works as expected, and file is read.
Desired behavior
cy.readFile command (with null as encoding argument) should fall back to default timeout of 4 seconds and retry until file is found.
Test code to reproduce
... trigger a download of a file
cy.readFile(pathToFile,null);
Cypress Version
9.5.1
Other
No response
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#20689, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
Current behavior
Adding null as an encoding argument to
cy.readFile
command results inTypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object
.It seems that
null
option somehow bypasses the timeout and waiting for file to be downloaded, because as soon as I add 1 sec wait, the command works as expected, and file is read.Desired behavior
cy.readFile
command (with null as encoding argument) should fall back to default timeout of 4 seconds and retry until file is found.Test code to reproduce
... trigger a download of a file
Cypress Version
9.5.1
Other
No response
The text was updated successfully, but these errors were encountered: