@dapplets/dapplet-playwright
Version:
Playwright fixtures to test dapplets
25 lines (24 loc) • 1.24 kB
TypeScript
import { test as base } from "./dapplet-runner";
export declare enum RegistryTypes {
Prod = "v3.registry.dapplet-base.eth",
Test = "test.v3.registry.dapplet-base.eth"
}
export type DappletExecutorOptions = {
registry: RegistryTypes;
devServerUrl: string;
dappletName: string;
onboarding?: boolean;
};
type ExtendParams = Parameters<typeof base.extend<DappletExecutorOptions>>;
export declare const fixture: ExtendParams[0];
export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & import("./browser").BrowserOptions & {
skipOnboarding(): Promise<void>;
enableDevMode(): Promise<void>;
disableDevMode(): Promise<void>;
enableDevServer(devServerUrl: string): Promise<void>;
enableRegistry(registryUrl: string): Promise<void>;
activateDapplet(dappletName: string, registryUrl: string): Promise<void>;
deactivateDapplet(dappletName: string, registryUrl: string): Promise<void>;
} & DappletExecutorOptions, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
export declare const expect: import("@playwright/test").Expect;
export {};