Still remaining in firefox: cypresserror: cy.task()
must only be invoked from the spec file or support file.
#5533
Labels
cy.task()
must only be invoked from the spec file or support file.
#5533
Description
Same as cypress-io/cypress#27099, I am seeing this error when executing tasks within my commands.js file, but only in firefox. Currently using 13.2, but has happened since 12.15
URL of Issue(s)
NA
Steps to replicate
cy.task()
must only be invoked from the spec file or support file.Example code from commands.js:
cy.contains('Sign in').click()
cy.task("generateOTP", 'example').then(token => {
cy.get("element").type(token);
cy.get('element').click()
})
Browser
Firefox 118.0.2
Device
Additional Information
No response
The text was updated successfully, but these errors were encountered: