-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_settings is undefined in global before hook #2245
Comments
Is this something that will be fixed or is this expected since NW 1.x ? I'm using a Proxy to pass the BaseHook.prototype.run = new Proxy(BaseHook.prototype.run, {
apply: (target, thisArg, argumentsList) => {
// eslint-disable-next-line camelcase
thisArg.context.__module.test_settings = thisArg.context.settings;
return target.apply(thisArg, argumentsList);
},
}); |
No it's not expected. This looks like a valid bug. |
Any workaround on the issue? I need this to work. |
This issue has been automatically marked as stale because it has not had any recent activity. |
It is reproducible in the latest version, i.e. 1.4.3. Test_settings is undefined in global before hook. |
Describe the bug
I am upgrade the nightwatch version from 0.8.16 to 1.2.4, before I can use test_settings in global before() hook, but after upgrade to new version, it throw error
Cannot read property 'start_chromedriver' of undefined
hooks in globals
globals.js
Run with command
Verbose output
debug console log
Configuration
nightwatch.json
Your Environment
nightwatch --version
npm --version
node --version
The text was updated successfully, but these errors were encountered: