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