chore: flatten tool calling, prep for timeout handling (#205)
This commit is contained in:
@@ -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/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user