diff --git a/src/components/DatasetEditor/DatasetEditor.tsx b/src/components/DatasetEditor/DatasetEditor.tsx index f7d95f5..0602c4a 100644 --- a/src/components/DatasetEditor/DatasetEditor.tsx +++ b/src/components/DatasetEditor/DatasetEditor.tsx @@ -163,7 +163,7 @@ export const DatasetEditor: React.FC = ({ value, onChange, data }) => {
onChangeItems( items.filter( @@ -171,7 +171,6 @@ export const DatasetEditor: React.FC = ({ value, onChange, data }) => { ) ) } - data-testid={TEST_IDS.datasetEditor.buttonRemove} /> { }; const getComponent = ({ ...restProps }: any, context = getContext()) => { - return ; + return ; }; beforeEach(() => { diff --git a/src/components/EchartsEditor/EchartsEditor.tsx b/src/components/EchartsEditor/EchartsEditor.tsx index 08f7040..74de773 100644 --- a/src/components/EchartsEditor/EchartsEditor.tsx +++ b/src/components/EchartsEditor/EchartsEditor.tsx @@ -111,7 +111,7 @@ export const EchartsEditor: React.FC = ({ value, onChange, context, item 100} + showMiniMap={value.length > 100} value={value} height={context.options?.editor.height} onBlur={onChange} diff --git a/src/constants/tests.ts b/src/constants/tests.ts index 44367ca..fdb271c 100644 --- a/src/constants/tests.ts +++ b/src/constants/tests.ts @@ -26,7 +26,7 @@ export const TEST_IDS = { }, datasetEditor: { buttonAddNew: 'data-testid dataset-editor button-add-new', - buttonRemove: 'data-testid dataset-editor button-remove', + buttonRemove: 'dataset-editor button-remove', item: (name: string) => `data-testid dataset-editor item-${name}`, newItem: 'data-testid dataset-editor new-item', newItemName: 'dataset-editor new-item-name',