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:32:22 UTC
[superset] branch master updated: test: Fix act error in DataTablesPane test (#21403)
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 fdae29b0f0 test: Fix act error in DataTablesPane test (#21403)
fdae29b0f0 is described below
commit fdae29b0f07a42c35caa6bdd38c0993db7277936
Author: Lyndsi Kay Williams <55...@users.noreply.github.com>
AuthorDate: Fri Sep 9 06:32:10 2022 -0500
test: Fix act error in DataTablesPane test (#21403)
---
.../explore/components/DataTablesPane/test/DataTablesPane.test.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/src/explore/components/DataTablesPane/test/DataTablesPane.test.tsx b/superset-frontend/src/explore/components/DataTablesPane/test/DataTablesPane.test.tsx
index c5d9d0c7bb..1b4436b80e 100644
--- a/superset-frontend/src/explore/components/DataTablesPane/test/DataTablesPane.test.tsx
+++ b/superset-frontend/src/explore/components/DataTablesPane/test/DataTablesPane.test.tsx
@@ -39,10 +39,10 @@ describe('DataTablesPane', () => {
localStorage.clear();
});
- test('Rendering DataTablesPane correctly', () => {
+ test('Rendering DataTablesPane correctly', async () => {
const props = createDataTablesPaneProps(0);
render(<DataTablesPane {...props} />, { useRedux: true });
- expect(screen.getByText('Results')).toBeVisible();
+ expect(await screen.findByText('Results')).toBeVisible();
expect(screen.getByText('Samples')).toBeVisible();
expect(screen.getByLabelText('Expand data panel')).toBeVisible();
});