mirror of
https://github.com/apache/superset.git
synced 2026-07-13 18:25:58 +00:00
fix(theming): fix TimeTable chart issues (#34868)
This commit is contained in:
committed by
GitHub
parent
4695be5cc5
commit
d183969744
@@ -119,11 +119,12 @@ test('Should have remove button', async () => {
|
||||
const props = createProps();
|
||||
render(<CollectionControl {...props} />);
|
||||
|
||||
expect(
|
||||
await screen.findByRole('button', { name: 'Show info tooltip' }),
|
||||
).toBeInTheDocument();
|
||||
const removeButton = await screen.findByRole('img', { name: 'close' });
|
||||
expect(removeButton).toBeInTheDocument();
|
||||
expect(props.onChange).toHaveBeenCalledTimes(0);
|
||||
userEvent.click(screen.getByRole('button', { name: 'Show info tooltip' }));
|
||||
const buttonElement = removeButton.closest('button');
|
||||
expect(buttonElement).not.toBeNull();
|
||||
userEvent.click(buttonElement!);
|
||||
expect(props.onChange).toHaveBeenCalledWith([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user