UNPKG

@bhavinkumarvegad/playwright-email-utils

Version:

Reusable utilities for handling emails in Playwright tests from Yopmail, Gmail and other providers.

23 lines (22 loc) 649 B
import { GmailMessage } from '../providers/gmail'; interface EmailParserConfig { startMarker?: string; endMarker?: string; regex?: RegExp; type: 'between-markers' | 'regex' | 'full-text'; } export declare class EmailBodyParser { /** * Extract information from email body using different strategies */ static extractInfo(message: GmailMessage, config: EmailParserConfig): string | null; /** * Extract text between two markers in the email body */ private static extractBetweenMarkers; /** * Extract text using a regular expression */ private static extractWithRegex; } export {};