@@ -9,7 +9,7 @@ import { test } from './fixtures';
99
1010import { hideAddCellButton , waitForKernelReady } from './utils' ;
1111
12- test . use ( { autoGoto : false } ) ;
12+ test . use ( { autoGoto : false , viewport : { width : 524 , height : 800 } } ) ;
1313
1414test . describe ( 'Mobile' , ( ) => {
1515 test ( 'The layout should be more compact on the file browser page' , async ( {
@@ -18,10 +18,6 @@ test.describe('Mobile', () => {
1818 } ) => {
1919 await page . goto ( `tree/${ tmpPath } ` ) ;
2020
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-
2521 await page . waitForSelector ( '#top-panel-wrapper' , { state : 'hidden' } ) ;
2622
2723 expect ( await page . screenshot ( ) ) . toMatchSnapshot ( 'tree.png' ) ;
@@ -42,10 +38,6 @@ test.describe('Mobile', () => {
4238 // wait for the kernel status animations to be finished
4339 await waitForKernelReady ( page ) ;
4440
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-
4941 // force switching back to command mode to avoid capturing the cursor in the screenshot
5042 await page . evaluate ( async ( ) => {
5143 await window . jupyterapp . commands . execute ( 'notebook:enter-command-mode' ) ;
0 commit comments