@@ -9,7 +9,7 @@ import { test } from './fixtures';
9
9
10
10
import { hideAddCellButton , waitForKernelReady } from './utils' ;
11
11
12
- test . use ( { autoGoto : false } ) ;
12
+ test . use ( { autoGoto : false , viewport : { width : 524 , height : 800 } } ) ;
13
13
14
14
test . describe ( 'Mobile' , ( ) => {
15
15
test ( 'The layout should be more compact on the file browser page' , async ( {
@@ -18,10 +18,6 @@ test.describe('Mobile', () => {
18
18
} ) => {
19
19
await page . goto ( `tree/${ tmpPath } ` ) ;
20
20
21
- // temporary workaround to trigger a toolbar resize
22
- // TODO: investigate in https://github.com/jupyter/notebook/issues/6553
23
- await page . setViewportSize ( { width : 524 , height : 800 } ) ;
24
-
25
21
await page . waitForSelector ( '#top-panel-wrapper' , { state : 'hidden' } ) ;
26
22
27
23
expect ( await page . screenshot ( ) ) . toMatchSnapshot ( 'tree.png' ) ;
@@ -42,10 +38,6 @@ test.describe('Mobile', () => {
42
38
// wait for the kernel status animations to be finished
43
39
await waitForKernelReady ( page ) ;
44
40
45
- // temporary workaround to trigger a toolbar resize
46
- // TODO: investigate in https://github.com/jupyter/notebook/issues/6553
47
- await page . setViewportSize ( { width : 524 , height : 800 } ) ;
48
-
49
41
// force switching back to command mode to avoid capturing the cursor in the screenshot
50
42
await page . evaluate ( async ( ) => {
51
43
await window . jupyterapp . commands . execute ( 'notebook:enter-command-mode' ) ;
0 commit comments