diff --git a/src/components/DatasetEditor/DatasetEditor.test.tsx b/src/components/DatasetEditor/DatasetEditor.test.tsx index b65190d..2588ad3 100644 --- a/src/components/DatasetEditor/DatasetEditor.test.tsx +++ b/src/components/DatasetEditor/DatasetEditor.test.tsx @@ -172,14 +172,10 @@ describe('Dataset Editor', () => { }) ); - const newItemNameInput = selectors.newItemName(); - /** * Simulate select option doesn't exist */ - - fireEvent.change(newItemNameInput, { target: { value: 'A:Time' } }); - + fireEvent.change(selectors.newItemName(), { target: { value: 'A:Time' } }); expect(selectors.buttonAddNew()).toBeDisabled(); });