diff --git a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/__jest__/pipeline_processors_editor.helpers.tsx b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/__jest__/pipeline_processors_editor.helpers.tsx
index 320ccd0cbe8c0..37d2ea2e2c069 100644
--- a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/__jest__/pipeline_processors_editor.helpers.tsx
+++ b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/__jest__/pipeline_processors_editor.helpers.tsx
@@ -24,8 +24,15 @@ jest.mock('@elastic/eui', () => {
}}
/>
),
- // Mocking EuiCodeEditor, which uses React Ace under the hood
- EuiCodeEditor: (props: any) => (
+ };
+});
+
+jest.mock('../../../../../../../../src/plugins/kibana_react/public', () => {
+ const original = jest.requireActual('../../../../../../../../src/plugins/kibana_react/public');
+ return {
+ ...original,
+ // Mocking CodeEditor, which uses React Monaco under the hood
+ CodeEditor: (props: any) => (
) => {
act(() => {
find(`${processorSelector}.moveItemButton`).simulate('click');
});
+ component.update();
act(() => {
- find(dropZoneSelector).last().simulate('click');
+ find(dropZoneSelector).simulate('click');
});
component.update();
},
diff --git a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/pipeline_processors_editor_item/pipeline_processors_editor_item.tsx b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/pipeline_processors_editor_item/pipeline_processors_editor_item.tsx
index da5b99d6d8e8a..dec64b8b5fff6 100644
--- a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/pipeline_processors_editor_item/pipeline_processors_editor_item.tsx
+++ b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/pipeline_processors_editor_item/pipeline_processors_editor_item.tsx
@@ -105,7 +105,6 @@ export const PipelineProcessorsEditorItem: FunctionComponent = memo(
size="s"
disabled={disabled}
aria-label={editorItemMessages.moveButtonLabel}
- size="s"
onClick={onMove}
iconType="sortable"
/>
@@ -146,6 +145,7 @@ export const PipelineProcessorsEditorItem: FunctionComponent = memo(
{
diff --git a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/processors_tree/components/private_tree.tsx b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/processors_tree/components/private_tree.tsx
index 1a0864543a2a8..89407fd4366d8 100644
--- a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/processors_tree/components/private_tree.tsx
+++ b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/processors_tree/components/private_tree.tsx
@@ -92,9 +92,7 @@ export const PrivateTree: FunctionComponent = ({
});
}}
isVisible={Boolean(movingProcessor)}
- isDisabled={Boolean(
- !movingProcessor || isDropZoneAboveDisabled(info, movingProcessor!)
- )}
+ isDisabled={!movingProcessor || isDropZoneAboveDisabled(info, movingProcessor)}
/>
) : undefined}
@@ -111,9 +109,7 @@ export const PrivateTree: FunctionComponent = ({
{
event.preventDefault();
onAction({