abauzac / nightwatch-typescript

Boilerplate for nightwatch end to end tests with typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Simple boilerplate for nightwatch using typescript (and definitions). This configuration does not make use of Selenium. Only chromedriver is used so you don't need to install JavaJDK.

Install

Assuming you have node, typescript installed globally :

  • npm update

How to launch

In 3 different shells :

  • Launch chromedriver : npm run selenium
  • For typescript auto compile : npm run watch
  • Launch nightwatch : npm run test
  • Instead of launching, you can directly debug using VSCode using the "Nighwatch" task from the "debugger" menu. Set the breakpoint and here you go

Todos :

  • Update nightwatch to 1.0+

Notes

Here we are using a fork a resemble-js : https://www.npmjs.com/package/node-resemble-js This fork doesn't make use of node-canvas (which has a lot of requirements depending on system host) The goal of this repo is to have the minimum viable project with node, nightwatch, typescript to do visual regression tests

Credit

About

Boilerplate for nightwatch end to end tests with typescript


Languages

Language:TypeScript 83.1%Language:JavaScript 16.9%