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/11/07 17:03:16 UTC

[superset] 01/01: Removed 46 act errors

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

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

commit 1c8c4881adfa49c24953a2cd63adbf896068b610
Author: lyndsiWilliams <kc...@gmail.com>
AuthorDate: Mon Nov 7 11:02:54 2022 -0600

    Removed 46 act errors
---
 .../controls/DndColumnSelectControl/DndMetricSelect.test.tsx       | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndMetricSelect.test.tsx b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndMetricSelect.test.tsx
index 80337344a2..a54d7cbac5 100644
--- a/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndMetricSelect.test.tsx
+++ b/superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndMetricSelect.test.tsx
@@ -30,6 +30,13 @@ import { DndMetricSelect } from 'src/explore/components/controls/DndColumnSelect
 import { AGGREGATES } from 'src/explore/constants';
 import { EXPRESSION_TYPES } from '../MetricControl/AdhocMetric';
 
+jest.mock(
+  'src/components/Icons/Icon',
+  () =>
+    ({ fileName }: { fileName: string }) =>
+      <span role="img" aria-label={fileName.replace('_', '-')} />,
+);
+
 const defaultProps = {
   savedMetrics: [
     {