Skip to content

Commit

Permalink
fix parent component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed Sep 7, 2022
1 parent 4057c66 commit 8a92b3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ describe('AddDataset', () => {
expect(screen.getByText(/header/i)).toBeVisible();
// Left panel
expect(blankeStateImgs[0]).toBeVisible();
expect(screen.getByText(/no database tables found/i)).toBeVisible();
// Database panel
expect(blankeStateImgs[1]).toBeVisible();
expect(screen.getByText(/select dataset source/i)).toBeVisible();
// Footer
expect(screen.getByText(/footer/i)).toBeVisible();

expect(blankeStateImgs.length).toBe(2);
expect(blankeStateImgs.length).toBe(1);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ describe('DatasetLayout', () => {
{ useRedux: true },
);

expect(screen.getByRole('img', { name: /empty/i })).toBeVisible();
expect(screen.getByText(/no database tables found/i)).toBeVisible();
expect(LeftPanel).toBeTruthy();
});

it('renders a DatasetPanel when passed in', () => {
Expand Down

0 comments on commit 8a92b3e

Please sign in to comment.