mirror of
https://github.com/apache/superset.git
synced 2026-06-02 22:29:26 +00:00
fix(dnd): add isExtra prop to Option (#15080)
This commit is contained in:
@@ -44,6 +44,17 @@ test('renders with caret', () => {
|
||||
expect(screen.getByRole('img', { name: 'caret-right' })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('renders with extra triangle', () => {
|
||||
render(
|
||||
<Option index={1} clickClose={jest.fn()} isExtra>
|
||||
Option
|
||||
</Option>,
|
||||
);
|
||||
expect(
|
||||
screen.getByRole('button', { name: 'Show info tooltip' }),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('triggers onClose', () => {
|
||||
const clickClose = jest.fn();
|
||||
render(
|
||||
|
||||
Reference in New Issue
Block a user