mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
feat(types): improve page.evaluate types (#6193)
This commit is contained in:
@@ -81,7 +81,7 @@ describe('Target', function () {
|
||||
)
|
||||
.then((target) => target.page()),
|
||||
page.evaluate(
|
||||
(url) => window.open(url),
|
||||
(url: string) => window.open(url),
|
||||
server.CROSS_PROCESS_PREFIX + '/empty.html'
|
||||
),
|
||||
]);
|
||||
@@ -215,7 +215,7 @@ describe('Target', function () {
|
||||
// Open a new page. Use window.open to connect to the page later.
|
||||
await Promise.all([
|
||||
page.evaluate(
|
||||
(url) => window.open(url),
|
||||
(url: string) => window.open(url),
|
||||
server.PREFIX + '/one-style.html'
|
||||
),
|
||||
server.waitForRequest('/one-style.css'),
|
||||
|
||||
Reference in New Issue
Block a user