mobify / nightwatch-commands

A set of Mobify specific custom commands for Nightwatch.js
60 stars 18 forks source link

The command "navigate" is already defined #74

Closed kraftner closed 7 years ago

kraftner commented 7 years ago

Summary

I get the following error

Error: The command "navigate" is already defined!

when adding

"custom_commands_path": "./node_modules/nightwatch-commands/commands",

to my config.

Is suspect it collides with the core navigate command introduced here.

Expected behaviour

Nightwatch doesn't throw an error when adding commands to custom_commands_path

Actual behaviour

Throws an error

Error: The command "navigate" is already defined!

Steps to reproduce

npm install nightwatch-commands --save-dev

Add to nightwatch.json

 "custom_commands_path": "./node_modules/nightwatch-commands/commands",

Run nightwatch