From dc966ca8eecdb45fe3de368dd2e3f0914e66d215 Mon Sep 17 00:00:00 2001 From: Yu Yi Yang Date: Fri, 26 Jul 2024 11:48:05 +0200 Subject: [PATCH] update test snapshots --- .../Components/Filters/Search.spec.jsx | 9 +- .../__snapshots__/Search.spec.jsx.snap | 67 +- .../__snapshots__/ImportHar.spec.jsx.snap | 7 +- .../FilterContainer.spec.jsx.snap | 703 ++++++++--------- .../__snapshots__/MainContainer.spec.jsx.snap | 710 ++++++++---------- .../NetworkTableContainer.spec.jsx.snap | 7 +- 6 files changed, 684 insertions(+), 819 deletions(-) diff --git a/tests/__tests__/Components/Filters/Search.spec.jsx b/tests/__tests__/Components/Filters/Search.spec.jsx index 3709b41..3004863 100644 --- a/tests/__tests__/Components/Filters/Search.spec.jsx +++ b/tests/__tests__/Components/Filters/Search.spec.jsx @@ -1,7 +1,8 @@ import React from 'react'; -import { shallow } from 'enzyme'; +import { mount } from 'enzyme'; import Search from './../../../../src/Components/Filters/Search'; +import NetworkProvider from '../../../../src/state/network/NetworkProvider'; describe('Search', () => { const params = { @@ -11,7 +12,11 @@ describe('Search', () => { }; it('renders without crashing', () => { - const element = shallow(); + const element = mount( + + + , + ); expect(element).toMatchSnapshot(); }); }); diff --git a/tests/__tests__/Components/Filters/__snapshots__/Search.spec.jsx.snap b/tests/__tests__/Components/Filters/__snapshots__/Search.spec.jsx.snap index 8ccb34c..d975a8b 100644 --- a/tests/__tests__/Components/Filters/__snapshots__/Search.spec.jsx.snap +++ b/tests/__tests__/Components/Filters/__snapshots__/Search.spec.jsx.snap @@ -1,23 +1,58 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Search renders without crashing 1`] = ` -
- + - -
+ > + +
+ `; diff --git a/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap b/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap index 5742f55..cae8e84 100644 --- a/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap +++ b/tests/__tests__/Components/Import/__snapshots__/ImportHar.spec.jsx.snap @@ -72,17 +72,14 @@ exports[`ImportHAR renders without crashing 1`] = ` type="file" /> + + + + + + + + + + + + + + + + + + + + +
- -
- - - - - - - -
-
+ + Errors Only +
- - +
+ +
-
+ - - - - - - - - - - - - - - - - - - - - - -
- -
-
-
- -
- - - -
-
- - - - -
-
- - - + + + +
+ + + + + diff --git a/tests/__tests__/Containers/__snapshots__/MainContainer.spec.jsx.snap b/tests/__tests__/Containers/__snapshots__/MainContainer.spec.jsx.snap index 323e894..68d36e4 100644 --- a/tests/__tests__/Containers/__snapshots__/MainContainer.spec.jsx.snap +++ b/tests/__tests__/Containers/__snapshots__/MainContainer.spec.jsx.snap @@ -51,407 +51,324 @@ exports[`MainContainer renders without crashing 1`] = ` >
- -
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + +
- -
- - - - - - - -
-
+ + Errors Only +
- - +
+ +
-
+ - - - - - - - - - - - - - - - - - - - - - -
- -
-
-
- -
- - - -
-
- - - - -
-
- -
-
+ + + + + + + + +
@@ -535,18 +452,15 @@ exports[`MainContainer renders without crashing 1`] = ` value="" />