@@ -49,7 +49,7 @@ test.use({
4949} ) ;
5050
5151test . describe ( 'Sidebars' , ( ) => {
52- test . beforeAll ( async ( { page , request, tmpPath } ) => {
52+ test . beforeAll ( async ( { request, tmpPath } ) => {
5353 const contents = galata . newContentsHelper ( request ) ;
5454
5555 // Create some dummy content
@@ -63,9 +63,6 @@ test.describe('Sidebars', () => {
6363 ) ;
6464 // Create a dummy folder
6565 await contents . createDirectory ( `${ tmpPath } /${ testFolderName } ` ) ;
66-
67- // Freeze all items' last modified dates as one day ago.
68- await galata . Mock . freezeContentLastModified ( page , filterContent ) ;
6966 } ) ;
7067
7168 test . afterAll ( async ( { request, tmpPath } ) => {
@@ -93,6 +90,9 @@ test.describe('Sidebars', () => {
9390 // Additional test cases for resized widths of the file browser
9491 for ( const [ sizeName , size ] of Object . entries ( sidebarWidths ) ) {
9592 test ( `Open Sidebar tab filebrowser ${ sizeName } ` , async ( { page } ) => {
93+ // Freeze all items' last modified dates as one day ago.
94+ await galata . Mock . freezeContentLastModified ( page , filterContent ) ;
95+
9696 await page . sidebar . openTab ( 'filebrowser' ) ;
9797 // Resize the sidebar to the desired width.
9898 await page . sidebar . setWidth ( size , 'left' ) ;
0 commit comments