MCPcopy Index your code
hub / github.com/remix-run/react-router / pageLoadWorkflow

Function pageLoadWorkflow

integration/vite-css-test.ts:460–492  ·  view source on GitHub ↗
({
  page,
  port,
  base,
  templateName,
}: {
  page: Page;
  port: number;
  base?: string;
  templateName: TemplateName;
})

Source from the content-addressed store, hash-verified

458});
459
460async function pageLoadWorkflow({
461 page,
462 port,
463 base,
464 templateName,
465}: {
466 page: Page;
467 port: number;
468 base?: string;
469 templateName: TemplateName;
470}) {
471 for (const routeBase of getRouteBasePaths(templateName)) {
472 let pageErrors: Error[] = [];
473 page.on("pageerror", (error) => pageErrors.push(error));
474
475 await page.goto(`http://localhost:${port}${base ?? "/"}${routeBase}`, {
476 waitUntil: "networkidle",
477 });
478
479 await Promise.all(
480 [
481 "#css-bundled",
482 "#css-postcss-linked",
483 "#css-modules",
484 "#css-vanilla-global",
485 "#css-vanilla-local",
486 ].map(
487 async (selector) =>
488 await expect(page.locator(selector)).toHaveCSS("padding", PADDING),
489 ),
490 );
491 }
492}
493
494async function hmrWorkflow({
495 page,

Callers 1

vite-css-test.tsFile · 0.85

Calls 3

getRouteBasePathsFunction · 0.85
gotoMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…