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

Method startOrPreserveChain

test/lib/browsers/playwright.ts:662–667  ·  view source on GitHub ↗

Either start or continue a chain. If continuing, it preserves the current chained value.

(nextCall: () => Promise<void>)

Source from the content-addressed store, hash-verified

660
661 /** Either start or continue a chain. If continuing, it preserves the current chained value. */
662 private startOrPreserveChain(nextCall: () => Promise<void>) {
663 return this._chain(false, async (value) => {
664 await nextCall()
665 return value
666 })
667 }
668
669 // necessary for the type of the function below
670 readonly [Symbol.toStringTag]: string = 'Playwright'

Callers 7

setDimensionsMethod · 0.95
addCookieMethod · 0.95
deleteCookiesMethod · 0.95
keydownMethod · 0.95
keyupMethod · 0.95
waitForConditionMethod · 0.95
waitForIdleNetworkMethod · 0.95

Calls 1

_chainMethod · 0.95

Tested by

no test coverage detected