New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dennisdigital-cucumberjs

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dennisdigital-cucumberjs

A common collection of Cucumber JS step definitions for Dennis Digital.

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

Dennis Digital: Common step definitions for CucumberJS

A collections of common and reusable step defintions for Dennis Digital BDD testing stack. Run using CucumberJS and PhantomJS via NodeJS.

Installation

npm install dennisdigital-cucumberjs

Usgae

Your features folder should be in the same directory as you package.json run tests with the command:

./node_modules/.bin/cucumber-js --require node_modules/dennisdigital-cucumberjs --require features

Alternatively you can add this as an NPM script:

  "scripts": {
    "tests": "node_modules/.bin/cucumber-js --require node_modules/dennisdigital-cucumberjs --require features"
  }

npm run tests

And then options can be passed like so:

npm run tests -- --tags @mytesttag

The base url can and should be set in your package.json:

  "options": {
    "baseUrl": "localhost:3000"
  }

Example feature:

Feature: Post page
  In order browse posts,
  as a User,
  I want see the post element and read the title.

  @posts @mytesttag
  Scenario: Go on post 1
    Given I am on "/a-site-url"
    Then I should a ".css-selector" element
    And I should see "Post-1"

Dependencies:

  • chai-as-promised
  • chromedriver
  • cucumber
  • selenium-webdriver

Notes

Still very much a work in progress!

Keywords

FAQs

Package last updated on 29 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc