cucumber-step-definitions

0.1.1 • Public • Published

Cucumber Step Definitions

A collection of step definitions for use with cucumberjs and <href="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

Package Sidebar

Install

npm i cucumber-step-definitions

Weekly Downloads

6

Version

0.1.1

License

MIT

Last publish

Collaborators

  • jdewit