Nightwatch custom commands and assertions
These are some commands I use when I'm testing with nightwatch.js and selenium.
How do you use these commands?
You can install it using npm:
npm install @rpii/nightwatch-custom-commands --save-dev
```json
const ciCommands = require('@rpii/nightwatch-custom-commands');
module.exports = {
"test_workers": false,
"src_folders": ["tests"],
"globals_path": "globals/globals.js",
"custom_commands_path": [ciCommands.commandPath],
Now you should be able to use these commands when you call nightwatch --test
.