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

Function devtoolsUrl

testing/e2e/tests/devtools-helpers.ts:3–9  ·  view source on GitHub ↗
(
  route: string,
  testId: string,
  aimockPort: number,
)

Source from the content-addressed store, hash-verified

1import { expect, type Locator, type Page } from '@playwright/test'
2
3export function devtoolsUrl(
4 route: string,
5 testId: string,
6 aimockPort: number,
7): string {
8 return `${route}?testId=${encodeURIComponent(testId)}&aimockPort=${aimockPort}`
9}
10
11export async function waitForDevtoolsHarness(page: Page) {
12 await expect(page.getByTestId('devtools-hydrated')).toBeAttached()

Calls

no outgoing calls

Tested by

no test coverage detected