Skip to content
Permalink
Browse files
Updated Lab Exercise
  • Loading branch information
aa7401 committed Nov 11, 2019
1 parent d104a1d commit 0c90bcf74823ed9bfc0274b67b7c647dfe55eadd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
@@ -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
@@ -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",

0 comments on commit 0c90bcf

Please sign in to comment.