Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions tests/index.test.js.snapshot
Original file line number Diff line number Diff line change
@@ -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,<button id=\\"test\\" onclick=\\"alert('test dialog')\\">Click me</button>\\n3: data:text/html,<h1>New</h1> [selected]"}]}
{"content":[{"type":"text","text":"## Pages\n1: about:blank\n2: data:text/html,<button id=\"test\" onclick=\"alert('test dialog')\">Click me</button>\n3: data:text/html,<h1>New</h1> [selected]"}]}
`;

exports[`e2e > calls a tool 1`] = `
[{"type":"text","text":"## Pages\\n1: about:blank [selected]"}]
[{"type":"text","text":"## Pages\n1: about:blank [selected]"}]
`;

exports[`e2e > calls a tool multiple times 1`] = `
[{"type":"text","text":"## Pages\\n1: about:blank [selected]"}]
[{"type":"text","text":"## Pages\n1: about:blank [selected]"}]
`;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}
`;

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}
`;

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,<button id=\"test\" onclick=\"alert('test dialog')\">Click me</button>\n3: data:text/html,<h1>New</h1> [selected]"}]}
`;

exports[`e2e > calls a tool 1`] = `
[{"type":"text","text":"## Pages\n1: about:blank [selected]"}]
`;

exports[`e2e > calls a tool multiple times 1`] = `
[{"type":"text","text":"## Pages\n1: about:blank [selected]"}]
`;
Loading