There seems to be a problem with generating screenshots with the Mocha option in the test_runner.
I have re-created the issue here: https://github.com/robhuzzey/mochanightwatch
As you can see when running the test with mocha as the test_runner option we get no screenshots however if you modify the code to uncomment the default runner test & comment out test_runner option you can see screenshots work as expected.
Can anybody shed some light on a parameter I may be missing to enable screenshots to work with Mocha test runner please?
Looks like a bug, thanks for reporting.
This issue has been automatically marked as stale because it has not had any recent activity.
If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.
I have this issue in 1.0.18. It worked fine before switching to the builtin Mocha.
screenshots: {
enabled: true,
on_failure: true,
on_error: true,
path: 'tests_output/screenshots'
},
@beatfactor , does it make sense to re-open this? I don't believe it has been addressed.
Following, would love to see this getting fixed!
This issue has been automatically marked as stale because it has not had any recent activity.
If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.
Most helpful comment
Looks like a bug, thanks for reporting.