nightwatch-helpers
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

nightwatch-helpers

custom assertions and commands for easier nightwatch tests

1.2.0  •  Updated 3 years ago  •  by Evan You  •  MIT License

Custom assertions and commands for easier Nightwatch tests.

Usage

npm install nightwatch-helpers --save-dev

In your Nightwatch config:

{
  "custom_commands_path": ["node_modules/nightwatch-helpers/commands"],
  "custom_assertions_path": ["node_modules/nightwatch-helpers/assertions"]
}

What’s Included

Assertions

  • count(selector, count)

  • attributePresent(selector, attr)

  • evaluate(fn, [args], [message])

  • checked(selector, expected)

  • focused(selector, expected)

  • hasHTML(selector, html)

  • notVisible(selector)

Commands

  • dblClick(selector)

  • waitFor(duration)

  • trigger(selector, event, [keyCode])

  • enterValue(selector, value)

Popularity

Weekly Downloads
1.0K
Stars
50

Maintenance

Development

Last ver 4 years ago
Created 4 years ago
Last commit 4 years ago
15 hours between commits

Technology

Node version: 6.3.0
0 unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

1 contributors
Evan You
Maintainer, 7 commits

Dependencies

Tags

nightwatch
e2e
testing
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.