Skip to content

Commit

Permalink
fix addDataset test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Sep 13, 2022
1 parent 1389b8b commit c3e3544
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,18 @@
* under the License.
*/
import React from 'react';
import { render, screen, waitFor } from 'spec/helpers/testing-library';
import { render, screen } from 'spec/helpers/testing-library';
import AddDataset from 'src/views/CRUD/data/dataset/AddDataset';

describe('AddDataset', () => {
const waitForRender = () => waitFor(() => render(<AddDataset />));

it('renders a blank state AddDataset', async () => {
await waitForRender();
render(<AddDataset />, { useRedux: true });

const blankeStateImgs = screen.getAllByRole('img', { name: /empty/i });

expect(await screen.findByText(/header/i)).toBeInTheDocument();
// Header
expect(
screen.getByRole('textbox', {
await screen.findByRole('textbox', {
name: /dataset name/i,
}),
).toBeVisible();
Expand Down

0 comments on commit c3e3544

Please sign in to comment.