Closed kumarchandresh closed 11 months ago
Unfortunately there is nothing we can do here as we are limited by what we can use in JavaScript.
@AutomatedTester I'm seeing a similar issue I think:
I see that Nightwatch still has some output at the end. This makes me think that it is possible for Nightwatch to create a report file specifying the error.
How would I handle this situation otherwise? During our CI/CD runs, I would have to wrap the npx nightwatch
command to handle JS errors I assume.
Description of the bug/issue
When the callback of the command function of a custom assertion is never called,
I would expect Nighwatch to warn me (maybe through some TimeoutError or something), but Nightwatch stops execution immediately and doesn't report any error/warning.
Steps to reproduce
node nightwatch tests/good.test.js
node nightwatch tests/bad.test.js
Sample test
No response
Command to run
No response
Verbose Output
No response
Nightwatch Configuration
No response
Nightwatch.js Version
3.2.1
Node Version
18.17.0
Browser
Chrome 118.0.0
Operating System
Windows 11
Additional Information
Tested on v2.6.20 and v3.2.1