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
CypressError
cy.task() must only be invoked from the spec file or support file.
cypress/e2e/APP/download/ta—sk.spec.js:13:8
11 |describe('test', () => {
12 |it('test', () => {
> 13 | cy.task('testTask')
| ^
14 | })
15 | })
16 |
Other
No response
The text was updated successfully, but these errors were encountered:
maximilianschmid
changed the title
cy.task check if run in spec file fails if spec file name contains "em dash" - or long dash
cy.task() check fails if spec file name contains "em dash"
Feb 6, 2025
maximilianschmid
changed the title
cy.task() check fails if spec file name contains "em dash"
cy.task() fail if spec file name contains "em dash"
Feb 6, 2025
maximilianschmid
changed the title
cy.task() fail if spec file name contains "em dash"
cy.task() fails when spec file name contains "em dash"
Feb 6, 2025
Current behavior
When running this test code in a .spec file called task.spec.js the test works.
If it is run in a spec file with a em dash in it, eg. ta—sk.spec.js the test fails.
Desired behavior
Test should also work in a spec file which contains a em dash (—) in the file name.
Test code to reproduce
Cypress Version
14.0.2
Node version
v20.18.1
Operating System
Mac OS 15.3
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: