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
This is not a good enough.
"NOTE: Do not use ES6 arrow functions for your describe or it callback. This will cause the recording function to break."
Do you have any idea why?
The text was updated successfully, but these errors were encountered:
because the code uses this.currentTest. However, this can be fixed by listening for Cypress's test:before:run event and setting a global variable in index.js
letcurrentTest=''Cypress.on('test:before:run',({ title })=>currentTest=title
Then, all references to this.currentTest.title can simply be replaced with currentTest
This is not a good enough.
"NOTE: Do not use ES6 arrow functions for your describe or it callback. This will cause the recording function to break."
Do you have any idea why?
The text was updated successfully, but these errors were encountered: