Socket
Socket
Sign inDemoInstall

nightwatch-custom-commands-assertions

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nightwatch-custom-commands-assertions

These are some commands and assertion I use when I'm testing with nightwatch.js and selenium.


Version published
Weekly downloads
1.9K
decreased by-2.61%
Maintainers
1
Install size
16.0 MB
Created
Weekly downloads
 

Readme

Source

Nightwatch custom commands and assertions

Build Status npm version

These are some commands and assertion I use when I'm testing with nightwatch.js and selenium.

How to use these things?

You can install it using npm:

npm install nightwatch-custom-commands-assertions --save-dev

Then, open the nightwatch.json file in your editor (or create it if it doesn't exist) and edit the custom_commands_path and custom_assertions_path keys so they look like this:

{
	... //your config
	
	"custom_commands_path" : "node_modules/nightwatch-custom-commands-assertions/js/commands",
	"custom_assertions_path" : "node_modules/nightwatch-custom-commands-assertions/js/assertions",
	
	... //your config again
}

Now you should be able to use these commands/assertions when you call nightwatch --test.

Alternative ways of installing

  • Go into your tests folder (or where your nightwatch.json is) and do:

    git clone https://github.com/maxgalbu/nightwatch-custom-commands-assertions.git
    
  • Download the zipped repository here and extract it wherever you want

You then need to open your nightwatch.json and edit custom_commands_path and custom_assertions_path according to where you cloned or extracted the repository.

Contributing

See Contributing.md.

List of commands

See the docs folder

Keywords

FAQs

Last updated on 05 Apr 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc