You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2022/09/09 11:29:33 UTC

[superset] branch master updated: test: Fix act errors in ControlPanelsContainer test (#21398)

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

michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 714196e745 test: Fix act errors in ControlPanelsContainer test (#21398)
714196e745 is described below

commit 714196e7455188a1ef0528a1bff6acd6ff97f3d7
Author: Lyndsi Kay Williams <55...@users.noreply.github.com>
AuthorDate: Fri Sep 9 06:29:23 2022 -0500

    test: Fix act errors in ControlPanelsContainer test (#21398)
---
 .../src/explore/components/ControlPanelsContainer.test.tsx        | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/explore/components/ControlPanelsContainer.test.tsx b/superset-frontend/src/explore/components/ControlPanelsContainer.test.tsx
index 6af860470c..2be8745fa1 100644
--- a/superset-frontend/src/explore/components/ControlPanelsContainer.test.tsx
+++ b/superset-frontend/src/explore/components/ControlPanelsContainer.test.tsx
@@ -97,10 +97,12 @@ describe('ControlPanelsContainer', () => {
     } as ControlPanelsContainerProps;
   }
 
-  it('renders ControlPanelSections', () => {
-    render(<ControlPanelsContainer {...getDefaultProps()} />);
+  test('renders ControlPanelSections', async () => {
+    render(<ControlPanelsContainer {...getDefaultProps()} />, {
+      useRedux: true,
+    });
     expect(
-      screen.getAllByTestId('collapsible-control-panel-header'),
+      await screen.findAllByTestId('collapsible-control-panel-header'),
     ).toHaveLength(4);
   });
 });