Code Monkey home page Code Monkey logo

docker-nightwatch's Introduction

Get started

Install Docker

To avoid problems on Windows use the Docker Toolbox
For mac just Install docker

Container Types

Switch your docker into Linux containers

Automatic Boot Windows Only

(Windows) Open the Docker Quickstart Terminal

  • this will trigger the default docker boot

Manual Boot

(Windows) Open Power Shell
(MAC) Open Terminal
Issue the following command to start the docker machine
docker-machine start default

Resetting or installing a new instance of nightwatch nodes for Bruna.nl

By using powershell (Windows) or terminal (MAC) Browse to the {file system}/SSG-BrunaWebshop/automated-testing folder

Issue the command
npm install

Rename the .env.example to .env if you don't have a .env file mv env.example .env

Build the docker-compose image
docker-compose build

Start the docker nodes
docker-compose start

enter the docker bash docker-compose run --rm nightwatch

Running Specific Tests

Run all tests on test env docker-compose run --rm nightwatch npm run e2e:test
Run part of the tests
docker-compose run --rm nightwatch npm run e2e:test -- --tag homepage --tag hero_image_banner Run tests on dev env docker-compose run --rm nightwatch npm run e2e:dev Generate report
docker-compose run --rm nightwatch npm run test:report'

Supervise with VNC

download the VNC viewer on your machine https://www.realvnc.com/en/connect/download/viewer/
open the VNC viewer after install
input {docker-machine-ip}:5900 in the search box and press enter
input password secret
click ok button

Known issues

If you encounter HTTP request took too long to complete error, please restart your docker (3106)

Broken docker machine

If the docker machine is broken you can stop and restart the procedure
Remove all existing nodes
docker-compose down --rmi 'all'

docker-nightwatch's People

Contributors

shanehu13 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.