mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
feat(test runner): disable test timeout on page.pause() call (#10944)
This commit is contained in:
parent
acb75460bc
commit
19b08332ce
@ -207,6 +207,8 @@ export const test = _baseTest.extend<TestFixtures, WorkerFixtures>({
|
|||||||
onApiCallBegin: (apiCall: string, stackTrace: ParsedStackTrace | null, userData: any) => {
|
onApiCallBegin: (apiCall: string, stackTrace: ParsedStackTrace | null, userData: any) => {
|
||||||
if (apiCall.startsWith('expect.'))
|
if (apiCall.startsWith('expect.'))
|
||||||
return { userObject: null };
|
return { userObject: null };
|
||||||
|
if (apiCall === 'page.pause')
|
||||||
|
testInfo.setTimeout(0);
|
||||||
const testInfoImpl = testInfo as any;
|
const testInfoImpl = testInfo as any;
|
||||||
const step = testInfoImpl._addStep({
|
const step = testInfoImpl._addStep({
|
||||||
location: stackTrace?.frames[0],
|
location: stackTrace?.frames[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user