mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
chore: Working toward killing enzyme and cleaning up test noise. (#32207)
This commit is contained in:
@@ -20,9 +20,12 @@ import fetchMock from 'fetch-mock';
|
||||
import UploadDataModal, {
|
||||
validateUploadFileExtension,
|
||||
} from 'src/features/databases/UploadDataModel';
|
||||
import { render, screen } from 'spec/helpers/testing-library';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { waitFor } from '@testing-library/react';
|
||||
import {
|
||||
render,
|
||||
screen,
|
||||
waitFor,
|
||||
userEvent,
|
||||
} from 'spec/helpers/testing-library';
|
||||
import { UploadFile } from 'antd/lib/upload/interface';
|
||||
|
||||
const csvProps = {
|
||||
@@ -564,6 +567,7 @@ test('Columnar, does not render the rows', () => {
|
||||
});
|
||||
|
||||
test('database and schema are correctly populated', async () => {
|
||||
jest.setTimeout(10000);
|
||||
render(<UploadDataModal {...csvProps} />, {
|
||||
useRedux: true,
|
||||
});
|
||||
@@ -611,6 +615,7 @@ test('form without required fields', async () => {
|
||||
});
|
||||
|
||||
test('CSV form post', async () => {
|
||||
jest.setTimeout(10000);
|
||||
render(<UploadDataModal {...csvProps} />, {
|
||||
useRedux: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user