@@ -316,12 +316,12 @@ createRoot(document.getElementById('settings')).render(
316316 } )
317317 const shown = app . waitForEvent ( 'window' )
318318 await permission . prompt
319- . getByRole ( 'button' , { name : 'Allow all files… ' , exact : true } )
319+ . getByRole ( 'button' , { name : 'Full file access ' , exact : true } )
320320 . click ( { noWaitAfter : true } )
321321 const confirmation = await shown
322322 calls . expiringFullAccess = undefined
323323 await confirmation
324- . getByRole ( 'button' , { name : 'Allow all files ' , exact : true } )
324+ . getByRole ( 'button' , { name : 'Enable ' , exact : true } )
325325 . click ( { noWaitAfter : true } )
326326 expect ( await permission . result ) . toMatchObject ( { ok : false } )
327327 expect (
@@ -347,7 +347,7 @@ createRoot(document.getElementById('settings')).render(
347347 const permission = await requestPermission ( { operation : 'read' , toolCallId : 'fullAccess' } )
348348 const confirmationShown = app . waitForEvent ( 'window' )
349349 await permission . prompt
350- . getByRole ( 'button' , { name : 'Allow all files… ' , exact : true } )
350+ . getByRole ( 'button' , { name : 'Full file access ' , exact : true } )
351351 . click ( { noWaitAfter : true } )
352352 const confirmation = await confirmationShown
353353 await expect ( confirmation . getByRole ( 'button' , { name : 'Cancel' , exact : true } ) ) . toBeFocused ( )
@@ -365,14 +365,14 @@ createRoot(document.getElementById('settings')).render(
365365 ) . toMatchObject ( { fullFileAccess : false } )
366366 const acceptedConfirmation = app . waitForEvent ( 'window' )
367367 await folderPrompt
368- . getByRole ( 'button' , { name : 'Allow all files… ' , exact : true } )
368+ . getByRole ( 'button' , { name : 'Full file access ' , exact : true } )
369369 . click ( { noWaitAfter : true } )
370370 const allowAll = await acceptedConfirmation
371371 await allowAll . screenshot ( {
372372 path : test . info ( ) . outputPath ( 'full-file-access-confirmation.png' ) ,
373373 } )
374374 await allowAll
375- . getByRole ( 'button' , { name : 'Allow all files ' , exact : true } )
375+ . getByRole ( 'button' , { name : 'Enable ' , exact : true } )
376376 . click ( { noWaitAfter : true } )
377377 expect ( await permission . result ) . toMatchObject ( {
378378 ok : true ,
@@ -939,7 +939,10 @@ createRoot(document.getElementById('settings')).render(
939939 try {
940940 await toggle . click ( )
941941 await expect (
942- window . getByText ( 'Could not update file access' , { exact : true } )
942+ window . getByText (
943+ 'Could not save file access settings. Your previous setting may return after restarting Sim.' ,
944+ { exact : true }
945+ )
943946 ) . toBeVisible ( )
944947 await expect ( toggle ) . not . toBeChecked ( )
945948 expect (
0 commit comments