diff --git a/ui-tests/test/menus.spec.ts b/ui-tests/test/menus.spec.ts index 330c67515..7b957d3c9 100644 --- a/ui-tests/test/menus.spec.ts +++ b/ui-tests/test/menus.spec.ts @@ -6,6 +6,7 @@ import path from 'path'; import { test } from './fixtures'; import { expect } from '@playwright/test'; +import { waitForKernelReady } from './utils'; const NOTEBOOK = 'empty.ipynb'; @@ -35,6 +36,8 @@ test.describe('Notebook Menus', () => { MENU_PATHS.forEach(menuPath => { test(`Open menu item ${menuPath}`, async ({ page, tmpPath }) => { await page.goto(`notebooks/${tmpPath}/${NOTEBOOK}`); + await waitForKernelReady(page); + await page.menu.open(menuPath); expect(await page.menu.isOpen(menuPath)).toBeTruthy();