chimp: No error feedback when using Cucumber and webdriverio
Chimp seems to abstract away the feedback from the testing framworks.
@watch
Scenario: As a user I want to add an event to the diary
Signing out...
- Given I open the url "/diary"
Failures:
1) Scenario: As a user I want to add an event to the diary - features/diary.feature:6
Step: Before
Step Definition: features/steps/global.js:10
Message:
TypeError: Cannot read property 'trim' of undefined
at World.<anonymous> (features/steps/global.js:14:8)
I’ve used webdriver and cucumber before on their own and this would have returned something along the lines of could not find selector '.logout_link'
The same goes for the ruby capybara port.
Surely we should pass these errors forward. It makes it a nightmare to work with.
or am I missing something here
here is the args I pass in.
“test”: “chimp --chai --compiler=js:babel-register --jsonOutput=cucumber_output.json”,
Expected behaviour
When I add a browser.click('selector')
to my test steps
And I run the test on a page where this selector does not exist
Then I expect to be told in the command line that the element does not exist
Actual behaviour
When I add a browser.click('selector')
to my test steps
And I run the test on a page where this selector does not exist
Then i get the error TypeError: Cannot read property 'trim' of undefined
returned
Some example code for context of dependencies and run scripts
https://gist.github.com/maxmckenzie/475383187e989394c9d9e66a5c3a6128
Version & tools:
-
Chimp command line used: The exact command you used chimp --chai --compiler=js:babel-register --jsonOutput=cucumber_output.json
-
Chimp config file: Please provide a Gist if you use a config file
-
Chimp: type
chimp -v
0.45.1 -
Node.js: type
node -v
v7.2.1 -
Java: type
java -version
java version “1.8.0_111” Java™ SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot™ 64-Bit Server VM (build 25.111-b14, mixed mode) -
Operation system: type
uname -v
Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64
Console / Log Output
Join our Slack xolv.io/community #chimp channel, where you can find help and help others.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 24 (7 by maintainers)
Is it possible this is related to https://github.com/webdriverio/webdriverio/issues/1885 ? Needless to say I’ve been looking for the same solution.
Edit: I’ve gotten this working using Chimp v0.45.1 + Node v6.10.1
I’ve removed the exclamation mark! 😉
@samhatoum should we add something to the chimp docs to state this?