test: Fix act errors in DatasetLayout test (#21367)

This commit is contained in:
Lyndsi Kay Williams 2022-09-08 08:18:53 -05:00 committed by GitHub
parent 8ebf4ed3ff
commit 01c000add6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
});