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
Calling a custom command is incrementing the error event listener count eventually leading to an error indicating that the number of listeners exceeds the max limit (yes, I realize you can increase the defaultMaxListeners value but that is a workaround, not a solution).
Steps to reproduce
Create logMsg.js in the custom_commands folder
Create test.js in the tests folder
Add console log to node_modules\nightwatch\lib\core\treenode.js ...
Run tests.js (node nightwatch -e firefox tests/test.js)
Sample test
logMsg.jsexports.command=function(){this.pause(1)// function won't exit without this}test.jsmodule.exports={"Test" : browser=>{browser.logMsg().pause(1000)browser.logMsg().pause(1000)browser.logMsg().pause(1000)browser.logMsg().pause(1000)}}
Description of the bug/issue
Calling a custom command is incrementing the error event listener count eventually leading to an error indicating that the number of listeners exceeds the max limit (yes, I realize you can increase the defaultMaxListeners value but that is a workaround, not a solution).
Steps to reproduce
Sample test
Command to run
Verbose Output
Nightwatch Configuration
No response
Nightwatch.js Version
2.3.0
Node Version
14.17.1
Browser
No response
Operating System
Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: