Skip to content

Commit

Permalink
works parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 28, 2024
1 parent 74f6e0d commit ff52294
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playwright/utils/posthog-playwright-test-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ export type WindowWithPostHog = typeof globalThis & {
}

declare module '@playwright/test' {
/*
to support tests running in parallel
we keep captured events in the window object
for a page with custom methods added
to the Playwright Page object
*/
interface Page {
resetCapturedEvents(): Promise<void>
capturedEvents(): Promise<CaptureResult[]>
Expand Down

0 comments on commit ff52294

Please sign in to comment.