node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

msmink

Cukes

NPM Version Build Status Test Coverage

Introduction

msmink is a modification to cucumber-mink

Cucumber-mink is a cucumber-js step definition library.

Run your test with any Selenium browser: Phantomjs, Chrome, Firefox, IE

Prerequisites

Quick start

screencast

Launch the headless browser (wired to PhantomJS by default)

phantomjs -w

Install cucumber-mink library locally

npm install --save cucumber-mink

Create mink.js (for auto-load: features/support/mink.js)

var mink = require('cucumber-mink');
 
module.exports = function () {
  mink.init(this);
};

Use pre-defined steps in your features/__.feature files

// features/home.feature
Feature: I can use cucumber.mink to check the content of my website
 
  Background:
    Given I browse "http://localhost:3000"
 
  Scenario: Check Homepage content
    Given I am on the homepage
    And   I should see "Welcome to my awesome application" in the "h1" element

Run your tests

cucumber-js

Done !

Note: if your mink.js is not in the standard location, use cucumber-js --require path/to/mink.js

Code Quality

Dependency Status Codacy Badge Code Climate bitHound Score

Maintainers

The npm module for this library is maintained by:

List of all contributors

License

MIT