npm.io
0.1.1 • Published 12 years ago

cucumber-step-definitions

Licence
MIT
Version
0.1.1
Deps
0
Vulns
0
Weekly
0
Stars
6

Cucumber Step Definitions

A collection of step definitions for use with cucumberjs and <href="protractor" rel="nofollow noreferrer noopener" target="_blank">https://github.com/angular/protractor">protractor. These steps are highly specific to my apps. They will likely only be useful to you as a reference.

Usage

Extend a particular set of steps like so:

  // /project/features/step_definitions/form.js

  var form = require('cucumber-step-definitions').form;

  module.exports = function() {
    form.call(this);

    // you can override steps or add custom steps of your own

    //this.Given(/^I am on "([^"]*)"$/, function(arg1, callback) {
    //  driver.get(arg1 + 'some_custom_param').then(function() {
    //    callback();
    //  });
    //});
  };

##World.js Checkout world_example.js

Keywords