diff options
author | Derick Montague <derick.montague@ibm.com> | 2021-01-06 01:22:48 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-01-07 20:09:12 +0300 |
commit | 812803aa8a31fbbb86418850efb611e6a7028a9c (patch) | |
tree | 0e635bbabf605f0ee6548080cddfe7e6d7a34ccb /tests/unit/Global | |
parent | ca22a42bdb13c36386f1b131e87ddf3c1048ecb6 (diff) | |
download | webui-vue-812803aa8a31fbbb86418850efb611e6a7028a9c.tar.xz |
Update PageContainer snapshot test
The UI is rendering differently than the snapshot saved. I reviewed
the difference and it is simply a difference with how the formatting
of the class and id values. I did not see this issue when testing the
PageContainer snapshot test. It is not clear why there is a
difference, but if it were to fail again for a different user, we can
remove the snapshot since the main test we want to pass is that the
HTML element being rendered is the <main> element.
To update the snapshot for an individual spec file, use the following
command in the cli:
npm run test:update -- -u tests/unit/Global/PageContainer.spec.js
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ieac495f893ba2025d2d6f4d3b7b49506bdf0ecae
Diffstat (limited to 'tests/unit/Global')
-rw-r--r-- | tests/unit/Global/__snapshots__/PageContainer.spec.js.snap | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/unit/Global/__snapshots__/PageContainer.spec.js.snap b/tests/unit/Global/__snapshots__/PageContainer.spec.js.snap index 308f745e..b98d4485 100644 --- a/tests/unit/Global/__snapshots__/PageContainer.spec.js.snap +++ b/tests/unit/Global/__snapshots__/PageContainer.spec.js.snap @@ -1,9 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`PageContainer.vue should render correctly 1`] = ` -<template> - <main id="main-content" class="page-container"> - <slot /> - </main> -</template> +<main + class="page-container" + id="main-content" +/> `; |