mirror of
https://github.com/apache/superset.git
synced 2024-09-16 10:39:55 -04:00
test: Fix act errors in DatasetLayout test (#21367)
This commit is contained in:
parent
8ebf4ed3ff
commit
01c000add6
@ -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();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user