Skip to content

v1.0.0

Compare
Choose a tag to compare
@garg3133 garg3133 released this 21 Jun 09:22
· 105 commits to main since this release

This release adds a lot of improvements to the create-nightwatch tool.

Improvements

  • Added --browser flag (alias -b) to pass the browsers to be used directly from the CLI - #18.
    Usage:
    npm init nightwatch -- --browser chrome --browser firefox
    # with alias
    npm init nightwatch -- -b chrome -b firefox
    # with yes flag and alias
    npm init nightwatch -- --yes -b chrome -b firefox
  • Added question to choose between the cloud providers when remote is selected, and added config for Sauce Labs - 183377f.
    image

Examples

  • Added examples for custom-commands, custom-assertions, and page-objects.
  • Modified the structure of examples and added comments in the examples, so that they are easy to read and understand.
  • Examples can now be used as boilerplate for writing tests.
  • Fixed failing ecosia.js example.

Other

  • If the npm init nightwatch command is run inside a directory which is not a node project but already contains some files, the tool will now ask for confirmation before initializing the Nightwatch project in that directory - #10.
    image

  • Updated the dependencies, fixing vulnerabilities - #16.

  • Removed support for Internet Explorer - 74cfe86.

  • Added suggestions if the user passes wrong flags in the CLI - #18.
    image

  • Updated the configuration file, along with all the documentation links inside the configuration file.