Skip to content

Commit f679f3e

Browse files
committed
Try resize workaround in tests for now
1 parent b893cf0 commit f679f3e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ui-tests/test/mobile.spec.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import path from 'path';
66
import { expect } from '@playwright/test';
77

88
import { test } from './fixtures';
9+
910
import { waitForKernelReady } from './utils';
1011

11-
test.use({ autoGoto: false, viewport: { width: 524, height: 800 } });
12+
test.use({ autoGoto: false });
1213

1314
test.describe('Mobile', () => {
1415
test('The layout should be more compact on the file browser page', async ({
@@ -30,12 +31,14 @@ test.describe('Mobile', () => {
3031
`${tmpPath}/${notebook}`
3132
);
3233
await page.goto(`notebooks/${tmpPath}/${notebook}`);
33-
// TODO: investigate why this does not run the cells in Jupyter Notebook
34-
// await page.notebook.run();
3534

3635
// wait for the kernel status animations to be finished
3736
await waitForKernelReady(page);
3837

38+
// temporary workaround to trigger a toolbar resize
39+
// TODO: investigate in https://github.com/jupyter/notebook/issues/6553
40+
await page.setViewportSize({ width: 524, height: 800 });
41+
3942
// force switching back to command mode to avoid capturing the cursor in the screenshot
4043
await page.evaluate(async () => {
4144
await window.jupyterapp.commands.execute('notebook:enter-command-mode');

0 commit comments

Comments
 (0)