( provider: string, feature: string, testId: string, aimockPort: number, mode?: string, )
| 1 | import { expect, type Page } from '@playwright/test' |
| 2 | |
| 3 | export function featureUrl( |
| 4 | provider: string, |
| 5 | feature: string, |
| 6 | testId: string, |
| 7 | aimockPort: number, |
| 8 | mode?: string, |
| 9 | ): string { |
| 10 | let url = `/${provider}/${feature}?testId=${encodeURIComponent(testId)}&aimockPort=${aimockPort}` |
| 11 | if (mode) url += `&mode=${mode}` |
| 12 | return url |
| 13 | } |
| 14 | |
| 15 | export async function sendMessage(page: Page, text: string) { |
| 16 | const input = page.getByTestId('chat-input') |
no outgoing calls
no test coverage detected