From 4ce49f5183428c89ca3181b69f94e419b09fdc6b Mon Sep 17 00:00:00 2001 From: Nicholas Ung Date: Tue, 21 Nov 2023 16:02:14 -0800 Subject: [PATCH] Update tests and snapshots Signed-off-by: Nicholas Ung --- .../result_component.test.tsx.snap | 80 +- .../__snapshots__/result_grid.test.tsx.snap | 40 +- .../__snapshots__/search_config.test.tsx.snap | 530 +++++++-- .../search_configs.test.tsx.snap | 1060 +++++++++++++---- .../__tests__/search_config.test.tsx | 3 + 5 files changed, 1287 insertions(+), 426 deletions(-) diff --git a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap index 13b3f52..b1b64a1 100644 --- a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap +++ b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap @@ -1457,11 +1457,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-2" >
arr: @@ -1710,11 +1710,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-4" >
nestObj: @@ -1972,11 +1972,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-6" >
id: @@ -2225,11 +2225,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-8" >
id: @@ -2469,11 +2469,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-10" >
id: @@ -2713,11 +2713,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-12" >
id: @@ -2957,11 +2957,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-14" >
id: @@ -3210,11 +3210,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-16" >
id: @@ -3454,11 +3454,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-18" >
id: @@ -3707,11 +3707,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-20" >
id: @@ -4434,11 +4434,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-22" >
arr: @@ -4687,11 +4687,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-24" >
nestObj: @@ -4949,11 +4949,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-26" >
id: @@ -5202,11 +5202,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-28" >
id: @@ -5446,11 +5446,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-30" >
id: @@ -5690,11 +5690,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-32" >
id: @@ -5934,11 +5934,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-34" >
id: @@ -6187,11 +6187,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-36" >
id: @@ -6431,11 +6431,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-38" >
id: @@ -6684,11 +6684,11 @@ exports[`Result component Renders result component 1`] = ` key="datagrid-cell-40" >
id: diff --git a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap index b8e073d..61eb552 100644 --- a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap +++ b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap @@ -311,11 +311,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-2" >
arr: @@ -503,11 +503,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-4" >
nestObj: @@ -704,11 +704,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-6" >
id: @@ -896,11 +896,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-8" >
id: @@ -1140,11 +1140,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-10" >
id: @@ -1384,11 +1384,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-12" >
id: @@ -1628,11 +1628,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-14" >
id: @@ -1881,11 +1881,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-16" >
id: @@ -2125,11 +2125,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-18" >
id: @@ -2378,11 +2378,11 @@ exports[`Result grid component Renders result grid component 1`] = ` key="datagrid-cell-20" >
id: diff --git a/public/components/query_compare/search_result/search_components/__tests__/__snapshots__/search_config.test.tsx.snap b/public/components/query_compare/search_result/search_components/__tests__/__snapshots__/search_config.test.tsx.snap index 36d1e46..2d2c967 100644 --- a/public/components/query_compare/search_result/search_components/__tests__/__snapshots__/search_config.test.tsx.snap +++ b/public/components/query_compare/search_result/search_components/__tests__/__snapshots__/search_config.test.tsx.snap @@ -3,6 +3,7 @@ exports[`Flyout component Renders flyout component 1`] = ` - +
-
- +
- - -
-
- -
- - - - + + + + +
+ + + + + +
+
+
+
+
+
+
+
+ +
+ + +
+ +
+
+ + + +
+
+
- - - - - +
+

+ No pipeline +

+ +
+ +
+
+ +
+ +
+ + + +
+
+
+
+ +
- + + +
+ Optional +
+
- - -
+ +
+
- + - +
-
- +
- - -
-
- -
- - - - + + + + +
+ + + + + +
+
+
+
+
+
+
+
+ +
+ + +
+ +
+
+ + + +
+
+
- - - - - +
+

+ No pipeline +

+ +
+ +
+
+ +
+ +
+ + + +
+
+
+
+ +
- + + +
+ Optional +
+
- - -
+ +
+
- + - +
-
- +
- - -
-
- -
- - - - + + + + +
+ + + + + +
+
+
+
+
+
+
+
+ +
+ + +
+ +
+
+ + + +
+
+
- - - - - +
+

+ No pipeline +

+ +
+ +
+
+ +
+ +
+ + + +
+
+
+
+ +
- + + +
+ Optional +
+
- - -
+ +
+
- + { it('Renders flyout component', async () => { const setQueryString = jest.fn(); const setSelectedIndex = jest.fn(); + const setPipeline = jest.fn(); const setQueryError = jest.fn(); const wrapper = mount( @@ -27,6 +28,8 @@ describe('Flyout component', () => { setQueryString={setQueryString} selectedIndex={''} setSelectedIndex={setSelectedIndex} + pipeline={''} + setPipeline={setPipeline} queryError={initialQueryErrorState} setQueryError={setQueryError} />