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

Function waitForAllGenerationHooks

testing/e2e/tests/devtools-helpers.ts:74–92  ·  view source on GitHub ↗
(page: Page, outputCount = 1)

Source from the content-addressed store, hash-verified

72}
73
74export async function waitForAllGenerationHooks(page: Page, outputCount = 1) {
75 const cards = page.getByTestId('generation-hook-card')
76 await expect(cards).toHaveCount(6)
77 for (let index = 0; index < 6; index++) {
78 await expect(
79 cards.nth(index).getByTestId('generation-hook-status'),
80 ).toHaveText('success')
81 await expect
82 .poll(async () =>
83 Number(
84 await cards
85 .nth(index)
86 .getByTestId('generation-hook-output-count')
87 .innerText(),
88 ),
89 )
90 .toBeGreaterThanOrEqual(outputCount)
91 }
92}
93
94export async function expectClassChangesOnHover(
95 hoverSource: Locator,

Calls

no outgoing calls

Tested by

no test coverage detected