MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / open

Function open

integrations/tests/tests/utils.ts:9–16  ·  view source on GitHub ↗
(page: Page, path: string)

Source from the content-addressed store, hash-verified

7export const VIEWPORT_HEIGHT = 600;
8
9export async function open(page: Page, path: string) {
10 await page.setViewportSize({
11 width: VIEWPORT_WIDTH,
12 height: VIEWPORT_HEIGHT
13 });
14 await page.goto(`${HOST}${path}`);
15 await expect(page.locator('[data-test-id="header"]')).toBeAttached();
16}
17
18/** The scroll element of a scenario: the window, or a scrollable element (CSS selector). */
19export type Scroller = "window" | string;

Callers 7

renderFunction · 0.90
renderFunction · 0.90
renderFunction · 0.90
renderFunction · 0.90
renderFunction · 0.90

Calls

no outgoing calls

Tested by 5

renderFunction · 0.72
renderFunction · 0.72
renderFunction · 0.72
renderFunction · 0.72
renderFunction · 0.72