File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ import path from 'path';
6
6
import { expect } from '@playwright/test' ;
7
7
8
8
import { test } from './fixtures' ;
9
+
9
10
import { waitForKernelReady } from './utils' ;
10
11
11
- test . use ( { autoGoto : false , viewport : { width : 524 , height : 800 } } ) ;
12
+ test . use ( { autoGoto : false } ) ;
12
13
13
14
test . describe ( 'Mobile' , ( ) => {
14
15
test ( 'The layout should be more compact on the file browser page' , async ( {
@@ -30,12 +31,14 @@ test.describe('Mobile', () => {
30
31
`${ tmpPath } /${ notebook } `
31
32
) ;
32
33
await page . goto ( `notebooks/${ tmpPath } /${ notebook } ` ) ;
33
- // TODO: investigate why this does not run the cells in Jupyter Notebook
34
- // await page.notebook.run();
35
34
36
35
// wait for the kernel status animations to be finished
37
36
await waitForKernelReady ( page ) ;
38
37
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
+
39
42
// force switching back to command mode to avoid capturing the cursor in the screenshot
40
43
await page . evaluate ( async ( ) => {
41
44
await window . jupyterapp . commands . execute ( 'notebook:enter-command-mode' ) ;
You can’t perform that action at this time.
0 commit comments