diff --git a/tests/e2e/markdown-editor.test.e2e.ts b/tests/e2e/markdown-editor.test.e2e.ts index e88371a34a..b85975ff2c 100644 --- a/tests/e2e/markdown-editor.test.e2e.ts +++ b/tests/e2e/markdown-editor.test.e2e.ts @@ -26,7 +26,7 @@ test('Markdown image preview behaviour', async ({browser}, workerInfo) => { // This yields the monaco editor const editor = page.getByRole('presentation').nth(0); - expect(editor).toBeVisible(); + await expect(editor).toBeVisible(); await editor.click(); // Clear all the content await page.keyboard.press('ControlOrMeta+KeyA');