Skip to content

Commit b893cf0

Browse files
committed
Wait for kernel ready before menu screenshots
1 parent 12119f9 commit b893cf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui-tests/test/menus.spec.ts

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import path from 'path';
66
import { test } from './fixtures';
77

88
import { expect } from '@playwright/test';
9+
import { waitForKernelReady } from './utils';
910

1011
const NOTEBOOK = 'empty.ipynb';
1112

@@ -35,6 +36,8 @@ test.describe('Notebook Menus', () => {
3536
MENU_PATHS.forEach(menuPath => {
3637
test(`Open menu item ${menuPath}`, async ({ page, tmpPath }) => {
3738
await page.goto(`notebooks/${tmpPath}/${NOTEBOOK}`);
39+
await waitForKernelReady(page);
40+
3841
await page.menu.open(menuPath);
3942
expect(await page.menu.isOpen(menuPath)).toBeTruthy();
4043

0 commit comments

Comments
 (0)