Skip to content

Commit

Permalink
Remove incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmahajan7 committed Jun 1, 2023
1 parent 32d0b83 commit 6bec38a
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions test/column/renderEditCell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,26 +249,6 @@ describe('Editor', () => {
renderEditCell() {
return <input aria-label="col1-input" value="123" readOnly autoFocus />;
}
},
{
key: 'col2',
name: 'Column2',
renderEditCell({ onClose }) {
return (
<input
aria-label="col2-input"
value="123"
readOnly
autoFocus
onBlur={() => {
onClose(true);
}}
/>
);
},
editorOptions: {
commitOnOutsideClick: false
}
}
];

Expand All @@ -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();
});
});
Expand Down

0 comments on commit 6bec38a

Please sign in to comment.