diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/__snapshots__/acceleration_table.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/__snapshots__/acceleration_table.test.tsx.snap index f5eea2cb2c2b..29ee4665d5dc 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/__snapshots__/acceleration_table.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/__snapshots__/acceleration_table.test.tsx.snap @@ -1,3 +1,346 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AccelerationTable Component matches snapshot 1`] = `"

Accelerations

Accelerations optimize query performance by indexing external data into OpenSearch.
Last updated at:
3/14/2024, 4:05:53 AM

Actions
Name
Status
Refreshing
Type
materialized
Database
default
Table
-
Refresh Type
Auto refresh
Destination Index
flint_mys3_default_http_count_view
Name
Status
Refreshing
Type
materialized
Database
default
Table
-
Refresh Type
Auto refresh
Destination Index
flint_mys3_default_http_count_view_alt
Name
Status
Deleted
Type
materialized
Database
default
Table
-
Refresh Type
Auto refresh
Destination Index
flint_mys3_default_http_logs
Name
Status
Active
Type
skipping
Database
default
Table
http_logs
Refresh Type
Manual
Destination Index
-
Name
Status
Refreshing
Type
materialized
Database
other
Table
-
Refresh Type
Auto refresh
Destination Index
flint_mys3_other_http_count_view
"`; +exports[`AccelerationTable Component render result matches snapshot 1`] = ` +Array [ +
, +
+
+
+
+

+ Accelerations +

+ Accelerations optimize query performance by indexing external data into OpenSearch. +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + Actions + + +
+
+ + No items found + +
+
+
+
+
, +] +`; diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/acceleration_table.test.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/acceleration_table.test.tsx index 70da8e25def1..c345e74116fe 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/acceleration_table.test.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/acceleration_management/acceleration_table.test.tsx @@ -4,7 +4,7 @@ */ import React from 'react'; -import { mount, configure } from 'enzyme'; +import { mount, configure, render } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import { EuiLoadingSpinner } from '@elastic/eui'; import { AccelerationTable } from './acceleration_table'; @@ -180,18 +180,14 @@ describe('AccelerationTable Component', () => { expect(wrapper!.text()).toContain(expectedLocalizedTime); }); - it('matches snapshot', async () => { - let wrapper: ReactWrapper; - await act(async () => { - wrapper = mount( + it('render result matches snapshot', async () => { + expect( + render( - ); - }); - wrapper!.update(); - - expect(wrapper!.html()).toMatchSnapshot(); + ) + ).toMatchSnapshot(); }); });