diff options
author | Derick Montague <derick.montague@ibm.com> | 2020-04-25 02:11:04 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-05-05 15:24:59 +0300 |
commit | ad2ceb6df979cff60e05b088a17ee29dfb95a9ff (patch) | |
tree | c26efc8f6de2ce9e37057c10601830f05e724c65 /src/components/AppNavigation/AppNavigation.vue | |
parent | 408657262515e015a2964aafb8a1c76fb5259699 (diff) | |
download | webui-vue-ad2ceb6df979cff60e05b088a17ee29dfb95a9ff.tar.xz |
Use Jest as the test framework
- Remove mocha, chai, sinon and setup.js
- Add snapshot test to ApplicationHeader spec and remove skip nav link
test
- Add an update snapshot test that can be run if a page changes and the
snapshot needs to be updated
- Remove tight coupling of application structure and test in
ApplicationHeader spec
We are changing to Jest for a few reasons:
1. Jest is the testing framework used by most Vue applications and
has robust documentation
2. It requires less configuration and works out of the box
3. It includes the ability to perform snapshot testing of rendered
UI, which is much easier to maintain than trying to test specific UI
elements.
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I7bca3613991ebae1fd464fa3a60f079d044ed7b4
Diffstat (limited to 'src/components/AppNavigation/AppNavigation.vue')
-rw-r--r-- | src/components/AppNavigation/AppNavigation.vue | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/AppNavigation/AppNavigation.vue b/src/components/AppNavigation/AppNavigation.vue index 7a8389fb..ef88adb4 100644 --- a/src/components/AppNavigation/AppNavigation.vue +++ b/src/components/AppNavigation/AppNavigation.vue @@ -92,6 +92,7 @@ <transition name="fade"> <div v-if="isNavigationOpen" + id="nav-overlay" class="nav-overlay" @click="toggleIsOpen" ></div> |