diff --git a/packages/editor/test/unit/toolbar/toolbar.test.tsx b/packages/editor/test/unit/toolbar/toolbar.test.tsx
index 1f1f672a..db8a96e2 100644
--- a/packages/editor/test/unit/toolbar/toolbar.test.tsx
+++ b/packages/editor/test/unit/toolbar/toolbar.test.tsx
@@ -2,7 +2,7 @@
* @jest-environment jsdom
*/
import React from 'react';
-import { render, fireEvent, waitFor, screen, findByLabelText } from '@testing-library/react';
+import { render, fireEvent, waitFor, screen, findByLabelText, act } from '@testing-library/react';
import ThreeDRotation from '@mui/icons-material/ThreeDRotation';
import Toolbar, {
ToolbarButtonOption,
@@ -313,19 +313,20 @@ describe('Toolbar', () => {
});
describe('AppBar', () => {
- it('When render it displays a menu', () => {
+ it('When render it displays a menu', async () => {
const capacity = new Capability('edition-owner', false);
const model = new Editor(null);
- render(
-
-
- ,
- ,
+ await act(async () =>
+ render(
+
+
+ ,
+ ),
);
screen.getByRole('menubar');
});