@@ -27,6 +27,7 @@ const results = {
2727 typeContainer : [ ] ,
2828 focus : [ ] ,
2929 listViewOpen : [ ] ,
30+ typeWithListViewOpen : [ ] ,
3031 inserterOpen : [ ] ,
3132 inserterHover : [ ] ,
3233 inserterSearch : [ ] ,
@@ -355,6 +356,41 @@ test.describe( 'Post Editor Performance', () => {
355356 } ) ;
356357 } ) ;
357358
359+ test . describe ( 'Typing (with List View open)' , ( ) => {
360+ let draftId = null ;
361+
362+ test ( 'Setup the test post' , async ( { admin, perfUtils, editor } ) => {
363+ await admin . createNewPost ( ) ;
364+ await perfUtils . loadBlocksForLargePost ( ) ;
365+ await editor . insertBlock ( { name : 'core/paragraph' } ) ;
366+ draftId = await perfUtils . saveDraft ( ) ;
367+ } ) ;
368+
369+ test ( 'Run the test' , async ( { admin, perfUtils, metrics, page } ) => {
370+ await admin . editPost ( draftId ) ;
371+ await perfUtils . disableAutosave ( ) ;
372+
373+ // Open List View
374+ const listViewToggle = page . getByRole ( 'button' , {
375+ name : 'Document Overview' ,
376+ } ) ;
377+ await listViewToggle . click ( ) ;
378+ await perfUtils . expectExpandedState ( listViewToggle , 'true' ) ;
379+
380+ const canvas = await perfUtils . getCanvas ( ) ;
381+
382+ const paragraph = canvas . getByRole ( 'document' , {
383+ name : / E m p t y b l o c k / i,
384+ } ) ;
385+
386+ await type ( paragraph , metrics , 'typeWithListViewOpen' ) ;
387+
388+ // Close List View
389+ await listViewToggle . click ( ) ;
390+ await perfUtils . expectExpandedState ( listViewToggle , 'false' ) ;
391+ } ) ;
392+ } ) ;
393+
358394 test . describe ( 'Opening Inserter' , ( ) => {
359395 let draftId = null ;
360396
0 commit comments