You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ly...@apache.org on 2022/12/06 03:38:17 UTC

[superset] 01/01: Removed 8 act errors

This is an automated email from the ASF dual-hosted git repository.

lyndsi pushed a commit to branch lyndsi/fix-act-errors-FixedOrMetricControl
in repository https://gitbox.apache.org/repos/asf/superset.git

commit c9e85d45ef9abcc235db2c1f6ae39cb959f83f86
Author: lyndsiWilliams <kc...@gmail.com>
AuthorDate: Mon Dec 5 21:37:42 2022 -0600

    Removed 8 act errors
---
 .../controls/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 6a2efd59ab..f44b5a932f 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 }) =>
+      <span role="img" aria-label={fileName.replace('_', '-')} />,
+);
+
 const createProps = () => ({
   datasource: {
     columns: [{ column_name: 'Column A' }],