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 2023/01/25 02:12:16 UTC

[superset] branch lyndsi/fix-act-errors-DatasourceControl created (now 1ece80d735)

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

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


      at 1ece80d735 Removed 6 act errors

This branch includes the following new commits:

     new 1ece80d735 Removed 6 act errors

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: Removed 6 act errors

Posted by ly...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1ece80d735a6ea35f300b6b7d7c986a06e094ae2
Author: lyndsiWilliams <kc...@gmail.com>
AuthorDate: Tue Jan 24 20:11:51 2023 -0600

    Removed 6 act errors
---
 .../DatasourceControl/DatasourceControl.test.tsx      | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx b/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx
index 2c094e72af..9e32c30051 100644
--- a/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx
+++ b/superset-frontend/src/explore/components/controls/DatasourceControl/DatasourceControl.test.tsx
@@ -27,6 +27,25 @@ import DatasourceControl from '.';
 
 const SupersetClientGet = jest.spyOn(SupersetClient, 'get');
 
+jest.mock('src/components/Icons/Icon', () => ({
+  __esModule: true,
+  default: ({
+    fileName,
+    role,
+    ...rest
+  }: {
+    fileName: string;
+    role: string;
+  }) => (
+    <span
+      role={role ?? 'img'}
+      aria-label={fileName.replace('_', '-')}
+      {...rest}
+    />
+  ),
+  StyledIcon: () => <span />,
+}));
+
 const createProps = (overrides: JsonObject = {}) => ({
   hovered: false,
   type: 'DatasourceControl',