Skip to content

Instructions are incorrect #4400

@rramsey

Description

@rramsey

Description of the bug/issue

When I follow the instructions on https://nightwatchjs.org/guide/quickstarts/create-and-run-a-nightwatch-test.html#postdoc-setup-nightwatch, I expect the instructions to reflect what I see on the screen.

Steps to reproduce

  1. Go to https://nightwatchjs.org/guide/quickstarts/create-and-run-a-nightwatch-test.html#postdoc-setup-nightwatch
  2. Follow the instructions for a new project
  • Instructions say ? Enter source folder where test files are stored (tests)
  • Actual text ? Enter source folder where test files are stored (test) so tests are not where you expect them to be.

Errors during install:

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
  1. In an existing project, npm init nightwatch
  • no errors during install
  • on screen instructions are different from web instructions. Following the web instructions, npx nightwatch ./nightwatch/examples results in

┌───────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                               │
│   An error occurred while trying to start the test runner:                                    │
│   [ENOENT] Cannot read source: stat .\nightwatch\examples.   │
│                                                                                               │
│                                                                                               │
└───────────────────────────────────────────────────────────────────────────────────────────────┘
  • following the screen instructions works, but they have errors.

Sample test

Command to run

Verbose Output


Nightwatch Configuration

Nightwatch.js Version

3.12.1

Node Version

No response

Browser

No response

Operating System

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions