Skip to content
Closed
Changes from 2 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 @@ -2,6 +2,7 @@ import { createSchedulerRenderer, SchedulerStoreRunner } from 'test/utils/schedu
import { EventCalendarProvider } from '@mui/x-scheduler-headless/event-calendar-provider';
import { screen } from '@mui/internal-test-utils';
import { EventCalendarStoreContext } from '@mui/x-scheduler-headless/use-event-calendar-store-context';
import { afterAll } from 'vitest';
import { PreferencesMenu } from './PreferencesMenu';
import { getPreferencesMenu, openPreferencesMenu } from '../../../utils/test-utils';

Expand All @@ -11,6 +12,12 @@ describe('<PreferencesMenu />', () => {

const { render } = createSchedulerRenderer();

afterAll(async () => {
await new Promise((resolve) => {
setTimeout(resolve);
});
Comment on lines +16 to +18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a sleep(0) function in test/utils/helperFn.

});

it('should render the menu when no config is provided', async () => {
render(
<EventCalendarProvider events={[]}>
Expand Down
Loading