msmink
v0.0.5
Published
cucumber-mink extensions
Downloads
4
Readme
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
- Node.js
- Selenium headless browser, ex: PhantomJS
- cucumber-js:
npm install -g cucumber
Quick start
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
Maintainers
The npm module for this library is maintained by: