MCPcopy
hub / github.com/vercel/next.js / setDimensions

Method setDimensions

test/lib/browsers/playwright.ts:392–396  ·  view source on GitHub ↗
({ width, height }: { height: number; width: number })

Source from the content-addressed store, hash-verified

390 })
391 }
392 setDimensions({ width, height }: { height: number; width: number }) {
393 return this.startOrPreserveChain(() =>
394 page.setViewportSize({ width, height })
395 )
396 }
397 addCookie(opts: { name: string; value: string }) {
398 return this.startOrPreserveChain(async () =>
399 context!.addCookies([

Callers 3

runTestsFunction · 0.80
runTestsFunction · 0.80
index.test.tsFile · 0.80

Calls 1

startOrPreserveChainMethod · 0.95

Tested by 2

runTestsFunction · 0.64
runTestsFunction · 0.64