Just clone it, bro! Give me a star while you're at it too.
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.
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.
Just run yarn
.
Then run yarn integration-test
.
Tests/fixtures are located in the tests/
folder. Happy coding!
Most of the configuration lives in nightwatch.conf.js
.
This is the place to define paths, globals like timeouts and such.
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.
Made with ❤️ by Quantum Mob