mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 06:00:07 +03:00
Fix test
This commit is contained in:
parent
3c03c8babd
commit
c6298fd58f
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { render, screen, waitFor } from '@testing-library/react';
|
||||
import { TraceTab } from '../src/StackTraceTab';
|
||||
|
||||
const actions = {
|
||||
|
@ -42,7 +42,10 @@ describe('StackTraceTab component', () => {
|
|||
const { container } = render(
|
||||
<TraceTabAsAny actions={actions} action={actions[2].action} />
|
||||
);
|
||||
await screen.findByTestId('stack-trace');
|
||||
const stackTraceDiv = await screen.findByTestId('stack-trace');
|
||||
await waitFor(() =>
|
||||
expect(stackTraceDiv.querySelector('div')).toBeTruthy()
|
||||
);
|
||||
expect(container.firstChild).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user