Kim Borup
2019-03-14 c44749539a519773a8f1a08842db797e4c6576ba
exercises/3-revenge-of-the-automated-testing/README.md
@@ -519,7 +519,7 @@
      // TODO - FILL THIS OUT IN THE EXERCISE
      this.$store.dispatch("updateTodo", {id: this.todoItem._id, important: true});
      console.info("INFO - Mark todo as important ", this.todoItem.important);
    },
    }
```
14. Let's connect the click button in the DOM to the Javascript function we've just created. In the template, add a click handler to the md-button to call the function `markImportant()` by adding ` @click="markImportant()"` to the `<md-button>` tag
@@ -531,7 +531,7 @@
    </md-button>
```
15. Finally - we need to make it so that when a new todo item is created it will have an important property. Head to `store/actions.js` and add `important: false`  below `completed: false` in the `addTodo(){}` action.
15. Finally - we need to make it so that when a new todo item is created it will have an important property. Head to `src/store/actions.js` and add `important: false`  below `completed: false` in the `addTodo(){}` action.
![fe-add-actions-important](../images/exercise3/fe-add-actions-important.jpg)
@@ -696,9 +696,14 @@
  };
```
    <!-- ![if-e2e-step4](../images/exercise3/if-e2e-step4.png) -->
    <!-- ![if-e2e-step4](../images/exercise3/e2e-code-listing-full.jpg) -->
7. Your final E2E test should look like the following:
    ![if-e2e-step4](../images/exercise3/e2e-code-listing-full.jpg)
7.  At this point we should have a working e2e test. We can run this by using `npm run e2e`. When all tests pass, we can push up these changes.
8.  At this point we should have a working e2e test. We can run this by using `npm run e2e`. When all tests pass, we can push up these changes.
```bash
git add .