feat(test runner): disable test timeout on page.pause() call (#10944)

This commit is contained in:
Dmitry Gozman 2021-12-15 11:12:52 -08:00 committed by GitHub
parent acb75460bc
commit 19b08332ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,6 +207,8 @@ export const test = _baseTest.extend<TestFixtures, WorkerFixtures>({
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],