Closed joshua-redmond closed 1 year ago
Thanks for raising this issue, we'll look into it. The @deprecated
message there just means that the method endSessionOnFail
is deprecated because it's not used anymore. But the setting itself should work as expected.
Description of the bug/issue
Once a test fails, I'd like to keep the browser open so I can see what went wrong.
I can do this by setting
end_session_on_fail
tofalse
, which works perfectly on v1.7.13.Once I upgraded to v2.6.8 (latest) or v2.0.4 (first 2.x version) it stopped working :thinking:
end_session_on_fail
still exists in the documentation, so I guess it was just overlooked in the 2.x version?Thanks.
Steps to reproduce
npm init nightwatch
(from https://nightwatchjs.org/guide/quickstarts/create-and-run-a-nightwatch-test.html)end_session_on_fail: false,
to:nightwatch.conf.js
x
in the.titleContains
atnightwatch/examples/basic/ecosia.js:7
(so the test fails).npx nightwatch ./nightwatch/examples/basic/ecosia.js
(from the same guide)Sample test
Command to run
Verbose Output
Nightwatch Configuration
Nightwatch.js Version
2.6.10
Node Version
16.19.0
Browser
Chrome 109.0.5414.74
Operating System
Ubuntu 20.04.5 LTS
Additional Information
Poking around the Nightwatch code a little, I found this:
node_modules/nightwatch/lib/core/client.js:460
It has
@deprecated
... so I guess this option is deprecated? The docs don't say it's deprecated though.