UNPKG

@currents/playwright

Version:

[Currents](https://currents.dev/playwright) is the most popular and advanced cloud-based platform for Playwright - debugging, error analysis, real-time analytics, orchestration, and more

69 lines (62 loc) 2.11 kB
import { Suite, FullConfig, Reporter, TestError } from '@playwright/test/reporter'; import { C as CurrentsConfig } from '../config-C8FaK9a4.js'; import { FullConfig as FullConfig$1 } from '@playwright/test'; type DebugMode = boolean | "remote" | "full"; declare function getNativeFullTestSuite(suite: Suite, config: FullConfig): { name: string; tags: string[]; environment: string | undefined; tests: { isOnly: boolean; title: string[]; spec: string; tags: string[]; testId: string; }[]; }[]; type DebugSource = "pwc" | "core" | "pwc-p" | "or8n"; declare class RemoteDebug { private source; static instance: RemoteDebug; static factory(source?: DebugSource): RemoteDebug; private pipelines; private mode; private debug; private constructor(); getDebugMode(): DebugMode; finalize({ runId }?: { runId?: string; }): Promise<void>; uploadDebug(id: string, runId: string): Promise<void>; private shouldEnableDebug; private shouldUploadRemoteDebug; private shouldMuteLocalStdout; } declare class OrchestrationPrinter { readonly pwConfig: FullConfig$1; readonly suite: Suite; readonly currentsConfig: CurrentsConfig | null; constructor(pwConfig: FullConfig$1, suite: Suite, currentsConfig?: CurrentsConfig | null); getIntro(params: { sessionId?: string; ciBuildId: string | null; machineId: string | null; }): string; } declare class OrchestrationReporter implements Reporter { private configLoader; pwConfig: FullConfig | null; pwSuite: Suite | null; fullSuite: ReturnType<typeof getNativeFullTestSuite> | null; printer: OrchestrationPrinter | null; remoteDebug: RemoteDebug; private parentNotified; constructor(reporterOptions: Partial<CurrentsConfig>); printsToStdio(): boolean; onBegin(config: FullConfig, suite: Suite): void; onError(err: TestError): void; onExit(): Promise<void>; private getOrchestrationAPI; onEnd(): Promise<void>; } export { OrchestrationReporter as default };