cucumber-chai-wd
Adapter for cucumber and chai to WebdriverJS just as Jasminewd is for Jasmine.
- Wraps expactations in control flow to have calls in sequences
To use it, just load it in a support js of cucumber:
module { // instruments cucumber with cucumber chai wd ; }
Or with optional chai modules:
module { // load chai with optional modules var chai = chai = ; chai; // instruments cucumber with cucumber chai wd thischai = chai; ; }
This will expose expect as a global function that will wrap any expectation in the control flow.
This will also override the cucumber step definition to wrap there execution in controll flow so that step will wait until every expectation is fullfilled in the control flow