mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
test: Fix act error in DataTablesPane test (#21403)
This commit is contained in:
parent
d635566c16
commit
fdae29b0f0
@ -39,10 +39,10 @@ describe('DataTablesPane', () => {
|
|||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Rendering DataTablesPane correctly', () => {
|
test('Rendering DataTablesPane correctly', async () => {
|
||||||
const props = createDataTablesPaneProps(0);
|
const props = createDataTablesPaneProps(0);
|
||||||
render(<DataTablesPane {...props} />, { useRedux: true });
|
render(<DataTablesPane {...props} />, { useRedux: true });
|
||||||
expect(screen.getByText('Results')).toBeVisible();
|
expect(await screen.findByText('Results')).toBeVisible();
|
||||||
expect(screen.getByText('Samples')).toBeVisible();
|
expect(screen.getByText('Samples')).toBeVisible();
|
||||||
expect(screen.getByLabelText('Expand data panel')).toBeVisible();
|
expect(screen.getByLabelText('Expand data panel')).toBeVisible();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user