MCPcopy
hub / github.com/remix-run/react-router / waitForAndAssert

Function waitForAndAssert

integration/error-boundary-v2-test.ts:249–257  ·  view source on GitHub ↗
(
  page: Page,
  app: PlaywrightFixture,
  selector: string,
  match: string,
)

Source from the content-addressed store, hash-verified

247
248// Shorthand util to wait for an element to appear before asserting it
249async function waitForAndAssert(
250 page: Page,
251 app: PlaywrightFixture,
252 selector: string,
253 match: string,
254) {
255 await page.waitForSelector(selector);
256 expect(await app.getHtml(selector)).toMatch(match);
257}

Callers 2

runBoundaryTestsFunction · 0.85

Calls 1

getHtmlMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…