mirror of
https://github.com/apache/superset.git
synced 2026-07-19 05:05:39 +00:00
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor (#31590)
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Co-authored-by: Diego Pucci <diegopucci.me@gmail.com> Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me> Co-authored-by: Geido <60598000+geido@users.noreply.github.com> Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com> Co-authored-by: Damian Pendrak <dpendrak@gmail.com> Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com> Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cc1ef88c8
commit
dd129fa403
@@ -20,7 +20,7 @@ import { render, screen, userEvent } from 'spec/helpers/testing-library';
|
||||
import CollectionControl from '.';
|
||||
|
||||
jest.mock('@superset-ui/chart-controls', () => ({
|
||||
InfoTooltipWithTrigger: (props: any) => (
|
||||
InfoTooltip: (props: any) => (
|
||||
<button
|
||||
onClick={props.onClick}
|
||||
type="button"
|
||||
@@ -120,10 +120,10 @@ test('Should have remove button', async () => {
|
||||
render(<CollectionControl {...props} />);
|
||||
|
||||
expect(
|
||||
await screen.findByRole('button', { name: 'remove-item' }),
|
||||
await screen.findByRole('button', { name: 'Show info tooltip' }),
|
||||
).toBeInTheDocument();
|
||||
expect(props.onChange).toHaveBeenCalledTimes(0);
|
||||
userEvent.click(screen.getByRole('button', { name: 'remove-item' }));
|
||||
userEvent.click(screen.getByRole('button', { name: 'Show info tooltip' }));
|
||||
expect(props.onChange).toHaveBeenCalledWith([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user