UNPKG

@gravitywiz/playwright-plugin-gravity-wiz

Version:

Playwright plugin for testing WordPress and Gravity Wiz plugins

46 lines 1.14 kB
export interface SetupOptions { emailsFolder?: string; } /** * Global setup function for Gravity Wiz tests */ export declare function globalSetup(options?: SetupOptions): Promise<{ emailsFolder: string; }>; /** * Global teardown function for Gravity Wiz tests */ export declare function globalTeardown(): Promise<void>; /** * Task functions that can be used in tests */ export declare const tasks: { /** * Add a plugin file dynamically */ addPlugin({ filename, contents, }: { filename: string; contents: string; }): Promise<null>; /** * Clear all emails from the capture folder */ clearEmails(emailsFolder: string): Promise<null>; /** * List all captured emails */ listEmails(emailsFolder: string): string[]; /** * Read a specific email file */ readEmail(emailsFolder: string, emailFilename: string): any; /** * Clear the WordPress debug log */ clearDebugLog(): Promise<null>; /** * Get the WordPress debug log contents */ getDebugLog(): Promise<string>; }; //# sourceMappingURL=setup.d.ts.map