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/08 13:19:07 UTC
[superset] branch master updated: test: Fix act errors in DatasetLayout test (#21367)
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 01c000add6 test: Fix act errors in DatasetLayout test (#21367)
01c000add6 is described below
commit 01c000add69d33ac5a9ba41065bfe8d29cb0bb4d
Author: Lyndsi Kay Williams <55...@users.noreply.github.com>
AuthorDate: Thu Sep 8 08:18:53 2022 -0500
test: Fix act errors in DatasetLayout test (#21367)
---
.../src/views/CRUD/data/dataset/DatasetLayout/DatasetLayout.test.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/views/CRUD/data/dataset/DatasetLayout/DatasetLayout.test.tsx b/superset-frontend/src/views/CRUD/data/dataset/DatasetLayout/DatasetLayout.test.tsx
index dbdc89e2ae..0b6027ea47 100644
--- a/superset-frontend/src/views/CRUD/data/dataset/DatasetLayout/DatasetLayout.test.tsx
+++ b/superset-frontend/src/views/CRUD/data/dataset/DatasetLayout/DatasetLayout.test.tsx
@@ -39,12 +39,15 @@ describe('DatasetLayout', () => {
expect(screen.getByText(/header/i)).toBeVisible();
});
- it('renders a LeftPanel when passed in', () => {
+ it('renders a LeftPanel when passed in', async () => {
render(
<DatasetLayout leftPanel={<LeftPanel setDataset={() => null} />} />,
{ useRedux: true },
);
+ expect(
+ await screen.findByText(/select database & schema/i),
+ ).toBeInTheDocument();
expect(LeftPanel).toBeTruthy();
});