@stencil/playwright
Version:
Testing adapter to use Playwright with Stencil
13 lines (12 loc) • 755 B
TypeScript
import type { Page } from '@playwright/test';
import type { E2EPageOptions } from '../../playwright-declarations';
/**
* This is an extended version of Playwright's `page.goto` method. In addition to performing
* the normal `page.goto` work, this code also automatically waits for the Stencil components
* to be hydrated before proceeding with the test.
*/
export declare const goto: (page: Page, url: string, originalFn: (url: string, options?: {
referer?: string | undefined;
timeout?: number | undefined;
waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit" | undefined;
} | undefined) => Promise<import("playwright-core").Response | null>, options?: E2EPageOptions) => Promise<import("playwright-core").Response | null>;