Full-Stack Web Development with Vue.js and Node

(singke) #1
Testing an MEVN Application Chapter 9

The tests are failing because we do not have the element present with the .hello class in


our application. So, to make the tests pass, we first need to add an identifier to the
elements, which we will be doing as a part the e2e tests by following the below steps.


Here are the things that we want to capture with the e2e test:



  1. Open the browser using http://localhost:8081

  2. Check whether the element with the #inspire ID exists. We have defined that in
    App.vue with the following code:


<template>
<v-app id="inspire">
<v-navigation-drawer
fixed
v-model="drawer"
app
>
Free download pdf