@@ -140,9 +140,11 @@ test("Cowork, Files, Quick Note, Markdown, and mobile continuity work as one fil
140140 await page . waitForFunction ( ( ) => document . querySelector ( '[aria-label="Notes editor"] .cm-content' ) === window . __coworkEditor ) ;
141141 const continuity = await page . evaluate ( ( ) => {
142142 const editor = document . querySelector ( '[aria-label="Notes editor"] .cm-content' ) ;
143- return { same : editor === window . __coworkEditor , focused : document . activeElement === editor , lines : [ ...document . querySelectorAll ( '[aria-label="Notes editor"] .cm-line' ) ] . map ( ( line ) => line . textContent ) , selection : window . getSelection ( ) ?. toString ( ) } ;
143+ return { same : editor === window . __coworkEditor , focused : document . activeElement === editor , lines : [ ...document . querySelectorAll ( '[aria-label="Notes editor"] .cm-line' ) ] . map ( ( line ) => line . textContent ) } ;
144144 } ) ;
145- assert . deepEqual ( continuity , { same : true , focused : true , lines : [ "# Field notes" , "" , "**Goal**" , "" , "Unsaved continuity proof." ] , selection : "ield not" } ) ;
145+ assert . deepEqual ( continuity , { same : true , focused : true , lines : [ "# Field notes" , "" , "**Goal**" , "" , "Unsaved continuity proof." ] } ) ;
146+ await page . keyboard . type ( "PRESERVED" ) ;
147+ assert . deepEqual ( await page . $$eval ( '[aria-label="Notes editor"] .cm-line' , ( lines ) => lines . map ( ( line ) => line . textContent ) ) , [ "# FPRESERVEDes" , "" , "**Goal**" , "" , "Unsaved continuity proof." ] ) ;
146148 await page . keyboard . down ( primaryModifier ) ; await page . keyboard . press ( "s" ) ; await page . keyboard . up ( primaryModifier ) ;
147149 await waitFor ( async ( ) => ( await api ( `/api/channels/${ channel . id } /files/text?path=notes%2Ffield-notes.md` , { } , token ) ) . file . content . includes ( "Unsaved continuity proof" ) , "saved Cowork note" ) ;
148150
0 commit comments