From 19b08332cec7dbe3a4cb904c40c750dfaf13d619 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Wed, 15 Dec 2021 11:12:52 -0800 Subject: [PATCH] feat(test runner): disable test timeout on page.pause() call (#10944) --- packages/playwright-test/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/playwright-test/src/index.ts b/packages/playwright-test/src/index.ts index 86ca60ad35..e66c148090 100644 --- a/packages/playwright-test/src/index.ts +++ b/packages/playwright-test/src/index.ts @@ -207,6 +207,8 @@ export const test = _baseTest.extend({ onApiCallBegin: (apiCall: string, stackTrace: ParsedStackTrace | null, userData: any) => { if (apiCall.startsWith('expect.')) return { userObject: null }; + if (apiCall === 'page.pause') + testInfo.setTimeout(0); const testInfoImpl = testInfo as any; const step = testInfoImpl._addStep({ location: stackTrace?.frames[0],