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(),
|
||||
]);
|
||||
const page = await target.page();
|
||||
expect(
|
||||
await page?.evaluate(() => {
|
||||
await page!.waitForFunction(() => {
|
||||
// @ts-expect-error wrong context.
|
||||
return Boolean(DevToolsAPI);
|
||||
})
|
||||
).toBe(true);
|
||||
});
|
||||
await browser.close();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user