From b6b19594787f509b173c1e4ec4a93a3f4aacce3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=A6?= <290551474+kkm9wd6vzj-stack@users.noreply.github.com> Date: Fri, 12 Jun 2026 17:00:15 +0800 Subject: [PATCH] Update snapshot tests for dialog and tool execution Updated snapshot tests to reflect changes in dialog error messages and tool execution outputs. --- tests/index.test.js.snapshot | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/tests/index.test.js.snapshot b/tests/index.test.js.snapshot index d008a393f..7384ea9e3 100644 --- a/tests/index.test.js.snapshot +++ b/tests/index.test.js.snapshot @@ -1,19 +1,37 @@ exports[`e2e > Dialogs > returns blocked message when dialog is opened during tool execution 1`] = ` -{"content":[{"type":"text","text":"# Open dialog\\nalert: test dialog.\\nCall handle_dialog to handle it before continuing.\\nError: Failed to interact with the element with uid 1_1. The element did not become interactive within the configured timeout."}],"isError":true} +{"content":[{"type":"text","text":"# Open dialog\nalert: test dialog.\nCall handle_dialog to handle it before continuing.\nError: Failed to interact with the element with uid 1_1. The element did not become interactive within the configured timeout."}],"isError":true} `; exports[`e2e > Dialogs > when dialog is open and tool is blocked, returns an error 1`] = ` -{"content":[{"type":"text","text":"# Open dialog\\nalert: test dialog.\\nCall handle_dialog to handle it before continuing.\\nError: A dialog is open (alert: test dialog)."}],"isError":true} +{"content":[{"type":"text","text":"# Open dialog\nalert: test dialog.\nCall handle_dialog to handle it before continuing.\nError: A dialog is open (alert: test dialog)."}],"isError":true} `; exports[`e2e > Dialogs > when dialog is open and tool is not blocked, executes tool 1`] = ` -{"content":[{"type":"text","text":"## Pages\\n1: about:blank\\n2: data:text/html,\\n3: data:text/html,