UNPKG

@stencil/playwright

Version:

Testing adapter to use Playwright with Stencil

12 lines (11 loc) 657 B
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. * * If no Stencil components are present (no `appload` event fires), the navigation * proceeds after the timeout without error. */ export declare const goto: (page: Page, url: string, originalFn: typeof page.goto, options?: E2EPageOptions) => Promise<import("@playwright/test").Response | null>;