From 393125baa1457593bbb44a6f6ca6811bfdb66133 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Wed, 5 May 2021 22:51:49 +0200 Subject: [PATCH] chore: remove snapshots --- .../ui-theme/src/App/Header/Header.test.tsx | 6 +- .../Header/__snapshots__/Header.test.tsx.snap | 1049 ----------------- 2 files changed, 2 insertions(+), 1053 deletions(-) delete mode 100644 packages/plugins/ui-theme/src/App/Header/__snapshots__/Header.test.tsx.snap diff --git a/packages/plugins/ui-theme/src/App/Header/Header.test.tsx b/packages/plugins/ui-theme/src/App/Header/Header.test.tsx index 301db3091..b30ed4e6d 100644 --- a/packages/plugins/ui-theme/src/App/Header/Header.test.tsx +++ b/packages/plugins/ui-theme/src/App/Header/Header.test.tsx @@ -23,7 +23,7 @@ const props = { /* eslint-disable react/jsx-no-bind*/ describe('
component with logged in state', () => { test('should load the component in logged out state', () => { - const { container, queryByTestId, getByText } = render( + const { queryByTestId, getByText } = render(
@@ -31,13 +31,12 @@ describe('
component with logged in state', () => { ); - expect(container.firstChild).toMatchSnapshot(); expect(queryByTestId('header--menu-accountcircle')).toBeNull(); expect(getByText('Login')).toBeTruthy(); }); test('should load the component in logged in state', () => { - const { container, getByTestId, queryByText } = render( + const { getByTestId, queryByText } = render(
@@ -45,7 +44,6 @@ describe('
component with logged in state', () => { ); - expect(container.firstChild).toMatchSnapshot(); expect(getByTestId('header--menu-accountcircle')).toBeTruthy(); expect(queryByText('Login')).toBeNull(); }); diff --git a/packages/plugins/ui-theme/src/App/Header/__snapshots__/Header.test.tsx.snap b/packages/plugins/ui-theme/src/App/Header/__snapshots__/Header.test.tsx.snap deleted file mode 100644 index 83236ec4e..000000000 --- a/packages/plugins/ui-theme/src/App/Header/__snapshots__/Header.test.tsx.snap +++ /dev/null @@ -1,1049 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`
component with logged in state should load the component in logged in state 1`] = ` -.emotion-0 { - background-color: #4b5e40; - color: #fff; - min-height: 60px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; -} - -@media (min-width:768px) { - .emotion-0 .emotion-11 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - } - - .emotion-0 .emotion-23 { - display: none; - } - - .emotion-0 .e1onlrbh4 { - display: none; - } -} - -@media (min-width:1024px) { - .emotion-0 .emotion-3 { - padding: 0 20px; - } - - @media (min-width:1275px) { - .emotion-0 .emotion-3 { - max-width: 1240px; - width: 100%; - margin: 0 auto; - } - } -} - -.emotion-2 { - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - padding: 0 15px; -} - -.emotion-4 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - padding: 0; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} - -.emotion-6 { - margin-right: 1em; -} - -.emotion-8 { - display: inline-block; - vertical-align: middle; - box-sizing: border-box; - background-position: center; - background-size: contain; - background-image: url([object Object]); - background-repeat: no-repeat; - width: 40px; - height: 40px; -} - -.emotion-10 { - display: none; - width: 100%; -} - -.emotion-12 { - width: 100%; - height: 32px; - position: relative; - z-index: 1; -} - -.emotion-14 .MuiInputBase-root:before { - content: ''; - border: none; -} - -.emotion-14 .MuiInputBase-root:after { - border-color: #fff; -} - -.emotion-14 .MuiInputBase-root:hover:before { - content: none; -} - -.emotion-14 .MuiInputBase-root:hover:after { - content: none; - -webkit-transform: scaleX(1); - -ms-transform: scaleX(1); - transform: scaleX(1); -} - -@media screen and (min-width:768px) { - .emotion-14 .MuiInputBase-root:hover:after { - content: ''; - } -} - -@media screen and (min-width:768px) { - .emotion-14 .MuiInputBase-input { - color: #fff; - } -} - -.emotion-16 { - color: #fff; -} - -.emotion-18 { - max-height: 500px; - overflow-y: auto; -} - -.emotion-20 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - padding: 0; -} - -.emotion-22 { - display: block; -} - -.emotion-24 { - width: 220px; - display: none; -} - -@media screen and (min-width:768px) { - .emotion-24 { - display: inline-block; - } -} - -.emotion-26 { - position: relative; - height: 40px; -} - -.emotion-28 { - height: 40px; - color: #fff; -} - -.emotion-28 .MuiInputBase-root { - height: 40px; - color: #fff; -} - -.emotion-28 .MuiInputBase-inputAdornedStart { - padding-left: 16px; -} - -.emotion-28 .MuiInputBase-input { - padding-top: 8px; - padding-bottom: 8px; -} - -.emotion-28 .MuiOutlinedInput-notchedOutline { - border-color: transparent; -} - -.emotion-28 :hover .MuiOutlinedInput-notchedOutline { - border-color: #fff; -} - -.emotion-28 :active .MuiOutlinedInput-notchedOutline { - border-color: #fff; -} - -.emotion-30 { - color: #fff; -} - -.emotion-32 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; -} - -.emotion-34 { - -webkit-transform: none; - -ms-transform: none; - transform: none; -} - -.emotion-36 { - color: #fff; -} - -
-
-
- -
- -
-
- -
-
-
- -
-
-
-
- - -
- - -
- -
-
-
-
- - - - - - - - -
-
-
-`; - -exports[`
component with logged in state should load the component in logged out state 1`] = ` -.emotion-0 { - background-color: #4b5e40; - color: #fff; - min-height: 60px; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; -} - -@media (min-width:768px) { - .emotion-0 .emotion-11 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - } - - .emotion-0 .emotion-23 { - display: none; - } - - .emotion-0 .e1onlrbh4 { - display: none; - } -} - -@media (min-width:1024px) { - .emotion-0 .emotion-3 { - padding: 0 20px; - } - - @media (min-width:1275px) { - .emotion-0 .emotion-3 { - max-width: 1240px; - width: 100%; - margin: 0 auto; - } - } -} - -.emotion-2 { - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - padding: 0 15px; -} - -.emotion-4 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - padding: 0; - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} - -.emotion-6 { - margin-right: 1em; -} - -.emotion-8 { - display: inline-block; - vertical-align: middle; - box-sizing: border-box; - background-position: center; - background-size: contain; - background-image: url([object Object]); - background-repeat: no-repeat; - width: 40px; - height: 40px; -} - -.emotion-10 { - display: none; - width: 100%; -} - -.emotion-12 { - width: 100%; - height: 32px; - position: relative; - z-index: 1; -} - -.emotion-14 .MuiInputBase-root:before { - content: ''; - border: none; -} - -.emotion-14 .MuiInputBase-root:after { - border-color: #fff; -} - -.emotion-14 .MuiInputBase-root:hover:before { - content: none; -} - -.emotion-14 .MuiInputBase-root:hover:after { - content: none; - -webkit-transform: scaleX(1); - -ms-transform: scaleX(1); - transform: scaleX(1); -} - -@media screen and (min-width:768px) { - .emotion-14 .MuiInputBase-root:hover:after { - content: ''; - } -} - -@media screen and (min-width:768px) { - .emotion-14 .MuiInputBase-input { - color: #fff; - } -} - -.emotion-16 { - color: #fff; -} - -.emotion-18 { - max-height: 500px; - overflow-y: auto; -} - -.emotion-20 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - padding: 0; -} - -.emotion-22 { - display: block; -} - -.emotion-24 { - width: 220px; - display: none; -} - -@media screen and (min-width:768px) { - .emotion-24 { - display: inline-block; - } -} - -.emotion-26 { - position: relative; - height: 40px; -} - -.emotion-28 { - height: 40px; - color: #fff; -} - -.emotion-28 .MuiInputBase-root { - height: 40px; - color: #fff; -} - -.emotion-28 .MuiInputBase-inputAdornedStart { - padding-left: 16px; -} - -.emotion-28 .MuiInputBase-input { - padding-top: 8px; - padding-bottom: 8px; -} - -.emotion-28 .MuiOutlinedInput-notchedOutline { - border-color: transparent; -} - -.emotion-28 :hover .MuiOutlinedInput-notchedOutline { - border-color: #fff; -} - -.emotion-28 :active .MuiOutlinedInput-notchedOutline { - border-color: #fff; -} - -.emotion-30 { - color: #fff; -} - -.emotion-32 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; -} - -.emotion-34 { - -webkit-transform: none; - -ms-transform: none; - transform: none; -} - -.emotion-36 { - color: #fff; -} - -
-
-
- -
- -
-
- -
-
-
- -
-
-
-
- - -
- - -
- -
-
-
-
- - - - - - - - -
-
-
-`;