MCPcopy
hub / github.com/vuejs/core / htmlWhenTransitionStart

Function htmlWhenTransitionStart

packages/vue/__tests__/e2e/TransitionGroup.spec.ts:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 const buffer = 20
8
9 const htmlWhenTransitionStart = () =>
10 page().evaluate(() => {
11 ;(document.querySelector('#toggleBtn') as any)!.click()
12 return Promise.resolve().then(() => {
13 return document.querySelector('#container')!.innerHTML
14 })
15 })
16
17 const transitionFinish = (time = duration) => timeout(time + buffer)
18

Callers 1

Calls 4

querySelectorMethod · 0.80
evaluateMethod · 0.65
clickMethod · 0.65
resolveMethod · 0.65

Tested by

no test coverage detected