MCPcopy Index your code
hub / github.com/TanStack/ai / featureUrl

Function featureUrl

testing/e2e/tests/helpers.ts:3–13  ·  view source on GitHub ↗
(
  provider: string,
  feature: string,
  testId: string,
  aimockPort: number,
  mode?: string,
)

Source from the content-addressed store, hash-verified

1import { expect, type Page } from '@playwright/test'
2
3export 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
15export async function sendMessage(page: Page, text: string) {
16 const input = page.getByTestId('chat-input')

Calls

no outgoing calls

Tested by

no test coverage detected