chore: flatten tool calling, prep for timeout handling (#205)
This commit is contained in:
parent
cea347d067
commit
7e4a964b0a
16 changed files with 484 additions and 336 deletions
|
|
@ -69,7 +69,6 @@ await page.getByRole('button', { name: 'Submit' }).click();
|
|||
`);
|
||||
});
|
||||
|
||||
|
||||
test('browser_select_option', async ({ client }) => {
|
||||
await client.callTool({
|
||||
name: 'browser_navigate',
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ test('test reopen browser', async ({ client }) => {
|
|||
|
||||
expect(await client.callTool({
|
||||
name: 'browser_close',
|
||||
})).toHaveTextContent('Page closed');
|
||||
})).toContainTextContent('No open pages available');
|
||||
|
||||
expect(await client.callTool({
|
||||
name: 'browser_navigate',
|
||||
|
|
|
|||
|
|
@ -42,5 +42,5 @@ test('save as pdf', async ({ client, mcpBrowser }) => {
|
|||
const response = await client.callTool({
|
||||
name: 'browser_pdf_save',
|
||||
});
|
||||
expect(response).toHaveTextContent(/^Saved as.*page-[^:]+.pdf$/);
|
||||
expect(response).toHaveTextContent(/Save page as.*page-[^:]+.pdf/);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue