From 8529b9eba2807f2d6b4cc4ddf60d95c4218c71d2 Mon Sep 17 00:00:00 2001
From: donal <donalspring@gmail.com>
Date: Wed, 18 Apr 2018 12:48:58 +0200
Subject: [PATCH] WIP - adding e2e to the pipeline

---
 exercises/3-revenge-of-the-automated-testing/README.md |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/exercises/3-revenge-of-the-automated-testing/README.md b/exercises/3-revenge-of-the-automated-testing/README.md
index 70d5875..2e1ee90 100644
--- a/exercises/3-revenge-of-the-automated-testing/README.md
+++ b/exercises/3-revenge-of-the-automated-testing/README.md
@@ -129,9 +129,22 @@
 2. If successful this will fail the build and not run the `bake` or `deploy` jobs. Don't forget to remove the changes that you made to your tests!
 
 #### Part 1b - End to End tests (e2e)
-> TODO - this section is not complete
+> _Unit tests are a great way to get immediate feedback as part of testing an application. End to end tests that drive user behaviour are another amazing way to assess an application is behaving as expected._
 
-2.  Add new part to the dev pipeline (`dev-todolist-fe-e2e`)
+In this exercise we will add a new stage to our pipeline called `dev-todolist-fe-e2e` that will run after the deploy has been completed. End to end tests will use Nightwatchjs to orchestrate a selenium webdriver instance that controls the web browser; in this case Chrome!
+
+2. Let's start by checking our tests execute locally. On the terminal move to the `todolist-fe` folder. Our end to end tests are stored in `tests/e2e/specs/`. The vuejs cli uses nightwatch and comes pre-configured to run tests against Chrome. We have created some additional configuration in the root of the project `nightwatch.config.js` to run headless in CI mode on Jenkins.
+```bash
+$ cd todolist-fe
+```
+
+2. Run the tests locally by executing the following. This should start the dev server and run the test. You may see the browser pop up and close while tests execute.
+```bash
+$ npm run e2e
+```
+
+2. With tests executing locally; let's add them to our Jenkins pipeline. To do this; we'll create a new job and connect it up to our `todolist-fe` jobs. Open Jenkins and create a `New Item` called `dev-todolist-fe-e2e`
+
 
 2. Add e2e tests and reporting to Jenkins
 

--
Gitblit v1.9.3