diff --git a/test/column/renderEditCell.test.tsx b/test/column/renderEditCell.test.tsx index 855e5d7ea3..bd43b1a6e1 100644 --- a/test/column/renderEditCell.test.tsx +++ b/test/column/renderEditCell.test.tsx @@ -249,26 +249,6 @@ describe('Editor', () => { renderEditCell() { return ; } - }, - { - key: 'col2', - name: 'Column2', - renderEditCell({ onClose }) { - return ( - { - onClose(true); - }} - /> - ); - }, - editorOptions: { - commitOnOutsideClick: false - } } ]; @@ -285,17 +265,7 @@ describe('Editor', () => { expect(col1Input).toHaveFocus(); await userEvent.click(outerInput); expect(outerInput).toHaveFocus(); - await waitFor(() => { - expect(col1Input).not.toBeInTheDocument(); - }); - expect(outerInput).toHaveFocus(); - - await userEvent.dblClick(getCellsAtRowIndex(0)[1]); - const col2Input = screen.getByLabelText('col2-input'); - expect(col2Input).toHaveFocus(); - await userEvent.click(outerInput); - expect(outerInput).toHaveFocus(); - expect(col2Input).not.toBeInTheDocument(); + expect(col1Input).not.toBeInTheDocument(); expect(outerInput).toHaveFocus(); }); });