From 0c90bcf74823ed9bfc0274b67b7c647dfe55eadd Mon Sep 17 00:00:00 2001 From: Mark Tyers Date: Mon, 11 Nov 2019 17:42:51 +0000 Subject: [PATCH] Updated Lab Exercise --- 03 Acceptance Testing.md | 4 +++- exercises/03_acceptance/cucumber/package.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/03 Acceptance Testing.md b/03 Acceptance Testing.md index 82b35cf..5868972 100644 --- a/03 Acceptance Testing.md +++ b/03 Acceptance Testing.md @@ -90,10 +90,12 @@ The rest of the file contains the test (lines 29-82). There is a lot to understa You have seen how to use Puppeteer to write a test to see that we can add a single item. We will now write some more tests. Unlike unit tests, we will be changing the state of the system in each test. The tests will run sequentially (one after the other). 1. Write a second test to check that we can add more than one item. -2. Write another test to check that if we add the same item twice we increment the quantity. +2. Write another test to check that if we add the same item twice we increment the quantity. Note that you will also need to implement this functionality, it does not currently exist! ### 1.2 Snapshots +As you develop your interface you will be designing specific page layouts and need to make sure that you don't break these as you add more features. Snapshots are part of the development process. + #### 1.2.1 Test Your Understanding xxx diff --git a/exercises/03_acceptance/cucumber/package.json b/exercises/03_acceptance/cucumber/package.json index 78c265f..7f2bb97 100644 --- a/exercises/03_acceptance/cucumber/package.json +++ b/exercises/03_acceptance/cucumber/package.json @@ -10,7 +10,7 @@ "author": "", "license": "ISC", "dependencies": { - "handlebars": "^4.3.3", + "handlebars": "^4.5.1", "http-status-codes": "^1.3.2", "koa": "^2.8.1", "koa-bodyparser": "^4.2.1", @@ -22,6 +22,7 @@ }, "devDependencies": { "cucumber": "^5.1.0", + "featurebook": "0.0.32", "jest": "^24.9.0", "jest-cucumber": "^2.0.11", "jest-image-snapshot": "^2.11.0",