UNPKG

@coinbase/onchaintestkit

Version:

End-to-end testing toolkit for blockchain applications, powered by Playwright

15 lines (14 loc) 646 B
import type { BrowserContext, Page } from "@playwright/test"; export interface ViewportSize { width: number; height: number; } /** * Generic utility to wait for and configure a page by URL * * @param context - Browser context to search for pages * @param pageUrl - Full URL of the page to wait for (e.g., 'chrome-extension://extensionId/notification.html') * @param viewport - Optional viewport size (defaults to 360x592 for extension popups) * @returns Promise that resolves to the found and configured page */ export declare function waitForPage(context: BrowserContext, pageUrl: string, viewport?: ViewportSize): Promise<Page>;