From 4cf40fb28603ea4a3b32cafc64dd4c8223585a42 Mon Sep 17 00:00:00 2001 From: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com> Date: Tue, 6 Dec 2022 07:27:02 -0600 Subject: [PATCH] test: Fix act errors in FixedOrMetricControl test (#22334) --- .../FixedOrMetricControl/FixedOrMetricControl.test.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/superset-frontend/src/explore/components/controls/FixedOrMetricControl/FixedOrMetricControl.test.tsx b/superset-frontend/src/explore/components/controls/FixedOrMetricControl/FixedOrMetricControl.test.tsx index 6a2efd59a..f44b5a932 100644 --- a/superset-frontend/src/explore/components/controls/FixedOrMetricControl/FixedOrMetricControl.test.tsx +++ b/superset-frontend/src/explore/components/controls/FixedOrMetricControl/FixedOrMetricControl.test.tsx @@ -21,6 +21,13 @@ import { render, screen } from 'spec/helpers/testing-library'; import userEvent from '@testing-library/user-event'; import FixedOrMetricControl from '.'; +jest.mock( + 'src/components/Icons/Icon', + () => + ({ fileName }: { fileName: string }) => + , +); + const createProps = () => ({ datasource: { columns: [{ column_name: 'Column A' }],