Code Monkey home page Code Monkey logo

nightwatch-starter's Introduction

nightwatch-starter

How to use

Just clone it, bro! Give me a star while you're at it too.

About this starter

This starter installs Chromedriver from package.json thus requiring minimal initial setup.

It also comes with an example Nightwatch command which can be found here to server as an example of code re-use between different fixtures.

About browser tests

Browser tests are used to make sure that the app works from a very holistic perspective. It verifies that basic use cases are functional without verifying the underpins of the system.

They are normally run at the very end of the build pipeline when the lower level unit tests have passed.

Nightwatch browser tests will use a real browser to execute black box-style assertions.

Installation

Just run yarn.

Running

Then run yarn integration-test.

Developing

Writing tests

Tests/fixtures are located in the tests/ folder. Happy coding!

Changing config

Most of the configuration lives in nightwatch.conf.js. This is the place to define paths, globals like timeouts and such.

Common pitfalls

Upgrading

Upgrading usually means bumping nightwatch, selenium-server-standalone-jar or chromedriver's version number.

When upgrading selenium-server-standalone-jar the new path to the .jar file should be specified in nightwatch.conf.js. Please refer to this commit for a how-to example. Note that the version is specified exactly. This is done to not break the config when new minor versions are released.

Credits

Made with ❤️ by Quantum Mob

nightwatch-starter's People

Contributors

alexpanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.