This repo contains a simple login form which takes the user to a logged in webpage. The code for the pages can be found under the public
folder.
As well as a test using nightwatch that opens the login form webpage, fills in the user name and password, clicks on submit, waits for logged in page to be visible.
The login form takes randomly 1-10 seconds to submit while the tests expects he page to load within 5 seconds. That means the test can fail and succeed randomly.
The tests can be found in the 'tests' folder.
Website: link to deployed site
Repo: link to github repo
- git git homepage unless you want to download the repo as zip.
- node node installation instructions from nightwatch
Project was created with the following versions of node and npm:
$ node -v
v10.15.3
$ npm -v
6.11.3
- Clone repo:
https://github.com/havard024/nightwatch-test.git
or download as zip from repo - Install dependencies:
npm install
- Run tests:
npm test