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
When using a task with a ArrayBuffer as argument, I get the error message cy.task() must only be invoked from the spec file or support file.
Using an array or a string as an argument works fine.
This is a problem when using cy.intercept and trying to send the intercept.body.response as an argument for a task, like validating the content of a intercepted pdf file.
This worked fine in Cypress 12.14.0
Desired behavior
Cypress should also allow ArrayBuffer to be passed as an argument. Alternatively there should be an explaination+documentation why ArrayBuffer is no longer supported as an argument, as the current error message is misleading.
Current behavior
When using a task with a ArrayBuffer as argument, I get the error message
cy.task() must only be invoked from the spec file or support file.
Using an array or a string as an argument works fine.
This is a problem when using cy.intercept and trying to send the
intercept.body.response
as an argument for a task, like validating the content of a intercepted pdf file.This worked fine in Cypress 12.14.0
Desired behavior
Cypress should also allow ArrayBuffer to be passed as an argument. Alternatively there should be an explaination+documentation why ArrayBuffer is no longer supported as an argument, as the current error message is misleading.
Test code to reproduce
spec.cy.js
cypress.config.js
Cypress Version
12.16.0
Node version
v18.12.1
Operating System
Win11
Debug Logs
No response
Other
Worked fine with older versions, the fix in 12.16.0 didn't help.
The text was updated successfully, but these errors were encountered: