test: Fix act error in DataTablesPane test (#21403)

This commit is contained in:
Lyndsi Kay Williams 2022-09-09 06:32:10 -05:00 committed by GitHub
parent d635566c16
commit fdae29b0f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -39,10 +39,10 @@ describe('DataTablesPane', () => {
localStorage.clear();
});
test('Rendering DataTablesPane correctly', () => {
test('Rendering DataTablesPane correctly', async () => {
const props = createDataTablesPaneProps(0);
render(<DataTablesPane {...props} />, { useRedux: true });
expect(screen.getByText('Results')).toBeVisible();
expect(await screen.findByText('Results')).toBeVisible();
expect(screen.getByText('Samples')).toBeVisible();
expect(screen.getByLabelText('Expand data panel')).toBeVisible();
});