From c1f06370da8b31b96cc887b60cd7126f1f44fc66 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Sat, 28 Dec 2024 17:20:27 +0000 Subject: [PATCH] add a comment --- playwright/utils/setup.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playwright/utils/setup.ts b/playwright/utils/setup.ts index bc0ac0356..b82eabe02 100644 --- a/playwright/utils/setup.ts +++ b/playwright/utils/setup.ts @@ -22,7 +22,11 @@ export async function start( waitForDecide?: boolean initPosthog?: boolean resetOnInit?: boolean + // playwright is stricter than cypress on access to the window object + // sometimes you need to pass functions here that will run on window in the correct page runBeforePostHogInit?: (pg: Page) => void + // playwright is stricter than cypress on access to the window object + // sometimes you need to pass functions here that will run on window in the correct page runAfterPostHogInit?: (pg: Page) => void type?: 'navigate' | 'reload' options?: Partial