Skip to content

Commit

Permalink
updated snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Apr 3, 2024
1 parent 6436e78 commit 0434ed8
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
exports[`Flyout component Renders flyout component 1`] = `
<SearchRelevanceContextProvider>
<SearchConfig
dataSourceManagement={
Object {
"ui": Object {
"DataSourceSelector": <React.Fragment />,
},
}
}
pipeline=""
queryError={
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
exports[`Flyout component Renders flyout component 1`] = `
<SearchRelevanceContextProvider>
<SearchConfigsPanel
dataSourceManagement={
Object {
"ui": Object {
"DataSourceSelector": <React.Fragment />,
},
}
}
queryError1={
Object {
"errorResponse": Object {
Expand Down Expand Up @@ -51,6 +58,13 @@ exports[`Flyout component Renders flyout component 1`] = `
className="euiFlexItem search-relevance-config"
>
<SearchConfig
dataSourceManagement={
Object {
"ui": Object {
"DataSourceSelector": <React.Fragment />,
},
}
}
pipeline=""
queryError={
Object {
Expand All @@ -65,6 +79,7 @@ exports[`Flyout component Renders flyout component 1`] = `
queryNumber={1}
queryString="{}"
selectedIndex=""
setDataSource={[Function]}
setPipeline={[Function]}
setQueryError={[Function]}
setQueryString={[Function]}
Expand Down Expand Up @@ -810,6 +825,13 @@ exports[`Flyout component Renders flyout component 1`] = `
className="euiFlexItem search-relevance-config"
>
<SearchConfig
dataSourceManagement={
Object {
"ui": Object {
"DataSourceSelector": <React.Fragment />,
},
}
}
pipeline=""
queryError={
Object {
Expand All @@ -824,6 +846,7 @@ exports[`Flyout component Renders flyout component 1`] = `
queryNumber={2}
queryString="{}"
selectedIndex=""
setDataSource={[Function]}
setPipeline={[Function]}
setQueryError={[Function]}
setQueryString={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { waitFor } from '@testing-library/react';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { SearchConfig } from '../search_configs/search_config';
import { SearchRelevanceContextProvider } from '../../../../../contexts';
import { TEST_QUERY_STRING } from '../../../../../../test/constants';
import { initialQueryErrorState } from '../../../../../../public/types/index';
import { TEST_QUERY_STRING } from '../../../../../../test/constants';
import { SearchRelevanceContextProvider } from '../../../../../contexts';
import { SearchConfig } from '../search_configs/search_config';

describe('Flyout component', () => {
configure({ adapter: new Adapter() });
Expand All @@ -20,6 +20,7 @@ describe('Flyout component', () => {
const setSelectedIndex = jest.fn();
const setPipeline = jest.fn();
const setQueryError = jest.fn();
const setDataSourceManagement = jest.fn();
const wrapper = mount(
<SearchRelevanceContextProvider>
<SearchConfig
Expand All @@ -32,6 +33,7 @@ describe('Flyout component', () => {
setPipeline={setPipeline}
queryError={initialQueryErrorState}
setQueryError={setQueryError}
dataSourceManagement={{ ui: { DataSourceSelector: <></> } }}
/>
</SearchRelevanceContextProvider>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { waitFor } from '@testing-library/react';
import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { SearchConfigsPanel } from '../search_configs/search_configs';
import { SearchRelevanceContextProvider } from '../../../../../contexts';
import { TEST_QUERY_STRING } from '../../../../../../test/constants';
import { initialQueryErrorState } from '../../../../../../public/types/index';
import { TEST_QUERY_STRING } from '../../../../../../test/constants';
import { SearchRelevanceContextProvider } from '../../../../../contexts';
import { SearchConfigsPanel } from '../search_configs/search_configs';

describe('Flyout component', () => {
configure({ adapter: new Adapter() });
Expand All @@ -27,6 +27,7 @@ describe('Flyout component', () => {
queryError2={initialQueryErrorState}
setQueryError1={() => {}}
setQueryError2={() => {}}
dataSourceManagement={{ ui: { DataSourceSelector: <></> } }}
/>
</SearchRelevanceContextProvider>
);
Expand Down

0 comments on commit 0434ed8

Please sign in to comment.