@@ -95,7 +109,6 @@ export const Preview = ({ id, title, isInitial, bulkDetails }) => {
/>
)}
-
);
@@ -112,5 +125,6 @@ Preview.propTypes = {
processedNumOfRecords: PropTypes.number,
matchedNumOfErrors: PropTypes.number,
committedNumOfErrors: PropTypes.number,
+ fqlQuery: PropTypes.string
}),
};
diff --git a/src/components/BulkEditList/BulkEditListResult/Preview/Preview.test.js b/src/components/BulkEditList/BulkEditListResult/Preview/Preview.test.js
index 10748007..d5c2dcd5 100644
--- a/src/components/BulkEditList/BulkEditListResult/Preview/Preview.test.js
+++ b/src/components/BulkEditList/BulkEditListResult/Preview/Preview.test.js
@@ -1,7 +1,7 @@
import { MemoryRouter } from 'react-router';
import { QueryClientProvider } from 'react-query';
-import { render, screen } from '@testing-library/react';
+import { logDOM, render, screen } from '@testing-library/react';
import { useOkapiKy } from '@folio/stripes/core';
import { runAxeTest } from '@folio/stripes-testing';
@@ -12,6 +12,7 @@ import { queryClient } from '../../../../../test/jest/utils/queryClient';
import { RootContext } from '../../../../context/RootContext';
import { Preview } from './Preview';
+import { CRITERIA } from '../../../../constants';
jest.mock('./PreviewAccordion', () => ({
PreviewAccordion: () => 'PreviewAccordion',
@@ -27,9 +28,9 @@ const defaultProps = {
id: bulkOperation.id,
};
-const renderPreview = (props = defaultProps) => {
+const renderPreview = (props = defaultProps, criteria = 'query') => {
render(
-