mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test: fix DevTools target test (#10814)
This commit is contained in:
parent
c67141f3ae
commit
d3b4135b46
@ -352,12 +352,10 @@ const serviceWorkerExtensionPath = path.join(
|
|||||||
context.newPage(),
|
context.newPage(),
|
||||||
]);
|
]);
|
||||||
const page = await target.page();
|
const page = await target.page();
|
||||||
expect(
|
await page!.waitForFunction(() => {
|
||||||
await page?.evaluate(() => {
|
// @ts-expect-error wrong context.
|
||||||
// @ts-expect-error wrong context.
|
return Boolean(DevToolsAPI);
|
||||||
return Boolean(DevToolsAPI);
|
});
|
||||||
})
|
|
||||||
).toBe(true);
|
|
||||||
await browser.close();
|
await browser.close();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user