From 68352a3960f80c5d51ae5b77381266119c9be57a Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Thu, 13 Aug 2026 16:49:13 +0900 Subject: [PATCH] test(browser): update browser mode snapshot error assertion (#10937) Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode --- test/browser/specs/errors.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/browser/specs/errors.test.ts b/test/browser/specs/errors.test.ts index 3b1b47d58..fc58ae5fa 100644 --- a/test/browser/specs/errors.test.ts +++ b/test/browser/specs/errors.test.ts @@ -125,7 +125,7 @@ test('cannot use fs commands if write is disabled', async () => { `Cannot save snapshot file "${fs.resolveFile('./__snapshots__/fs-commands.test.ts.snap')}". File writing is disabled because server is exposed to the internet`, ) expect(stderr).toContain( - `Cannot remove snapshot file "${fs.resolveFile('./__snapshots__/basic.test.js.snap')}". File writing is disabled because server is exposed to the internet`, + 'Cannot read snapshot file because browser API exec operations are disabled', ) // we don't throw an error if cannot write attachment, just warn -- 2.51.2