nightwatch
nightwatch copied to clipboard
Errors in tests using cucumberjs don't always fail the test.
Describe the bug
When running tests with cucumberjs there are times where a normal error with nightwatch is not caught in cucumberjs.
Sample test
If we take https://github.com/nightwatchjs/cucumberjs-boilerplate and update so that https://github.com/nightwatchjs/cucumberjs-boilerplate/blob/main/src/specs/When.js#L11-L14 does not get a find an element the tests will not fail the tests
Run with command
command as shown in boilerplate project
Verbose output
Output shows tests passing
Configuration
Your Environment
| Executable | Version |
|---|---|
nightwatch --version |
2.2.1 |
npm --version |
VERSION |
yarn --version |
VERSION |
node --version |
VERSION |
| Browser driver | Version |
|---|---|
| NAME | VERSION |
| OS | Version |
|---|---|
| NAME | VERSION |