Wait for kernel ready before menu screenshots

pull/6487/head
Jeremy Tuloup 3 years ago
parent 12119f97b3
commit b893cf0d06

@ -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();

Loading…
Cancel
Save