Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,14 @@ describe('ChartWidgetLoader - unmocked imports', () => {
// We only need to check that the dynamic import completes for these tests as that means ChartWidgetLoader is able to load all widgets
expect(screen.getByTestId('loading-placeholder')).toBeInTheDocument();

await waitFor(() => {
expect(screen.queryByTestId('loading-placeholder')).not.toBeInTheDocument();
});
await waitFor(
() => {
expect(screen.queryByTestId('loading-placeholder')).not.toBeInTheDocument();
},
{
timeout: 2000,
}
);

expect(TimeSeriesWidgetVisualization).toHaveBeenCalledWith(
expect.objectContaining({
Expand Down
Loading