(
result: Awaited<ReturnType<Client['callTool']>>,
)
| 375 | |
| 376 | describe('Dialogs', {concurrency: true}, () => { |
| 377 | function getFirstText( |
| 378 | result: Awaited<ReturnType<Client['callTool']>>, |
| 379 | ): string { |
| 380 | const first = Array.isArray(result.content) |
| 381 | ? result.content[0] |
| 382 | : undefined; |
| 383 | return first && 'text' in first && typeof first.text === 'string' |
| 384 | ? first.text |
| 385 | : ''; |
| 386 | } |
| 387 | |
| 388 | async function createNewPageAndTriggerDialog(client: Client) { |
| 389 | // Navigate to a page with a button that triggers a dialog on click |
no outgoing calls
no test coverage detected