Skip to content

Commit

Permalink
test: Fix act errors in DatasetLayout test (#21367)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams authored Sep 8, 2022
1 parent 8ebf4ed commit 01c000a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit 01c000a

Please sign in to comment.