chore: run updated prettier
This commit is contained in:
@@ -3,15 +3,8 @@ import path from 'path'
|
||||
import { h, createApp, Transition, ref, nextTick } from 'vue'
|
||||
|
||||
describe('e2e: Transition', () => {
|
||||
const {
|
||||
page,
|
||||
html,
|
||||
classList,
|
||||
isVisible,
|
||||
timeout,
|
||||
nextFrame,
|
||||
click
|
||||
} = setupPuppeteer()
|
||||
const { page, html, classList, isVisible, timeout, nextFrame, click } =
|
||||
setupPuppeteer()
|
||||
const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
|
||||
|
||||
const duration = process.env.CI ? 200 : 50
|
||||
@@ -21,7 +14,7 @@ describe('e2e: Transition', () => {
|
||||
|
||||
const classWhenTransitionStart = () =>
|
||||
page().evaluate(() => {
|
||||
(document.querySelector('#toggleBtn') as any)!.click()
|
||||
;(document.querySelector('#toggleBtn') as any)!.click()
|
||||
return Promise.resolve().then(() => {
|
||||
return document.querySelector('#container div')!.className.split(/\s+/g)
|
||||
})
|
||||
@@ -1066,7 +1059,7 @@ describe('e2e: Transition', () => {
|
||||
|
||||
// change view -> 'two'
|
||||
await page().evaluate(() => {
|
||||
(document.querySelector('#changeViewBtn') as any)!.click()
|
||||
;(document.querySelector('#changeViewBtn') as any)!.click()
|
||||
})
|
||||
// enter
|
||||
expect(await classWhenTransitionStart()).toStrictEqual([
|
||||
@@ -1085,7 +1078,7 @@ describe('e2e: Transition', () => {
|
||||
|
||||
// change view -> 'one'
|
||||
await page().evaluate(() => {
|
||||
(document.querySelector('#changeViewBtn') as any)!.click()
|
||||
;(document.querySelector('#changeViewBtn') as any)!.click()
|
||||
})
|
||||
// leave
|
||||
expect(await classWhenTransitionStart()).toStrictEqual([
|
||||
@@ -1172,7 +1165,7 @@ describe('e2e: Transition', () => {
|
||||
|
||||
// enter
|
||||
const enterClass = await page().evaluate(async () => {
|
||||
(document.querySelector('#toggleBtn') as any)!.click()
|
||||
;(document.querySelector('#toggleBtn') as any)!.click()
|
||||
// nextTrick for patch start
|
||||
await Promise.resolve()
|
||||
// nextTrick for Suspense resolve
|
||||
@@ -2001,10 +1994,8 @@ describe('e2e: Transition', () => {
|
||||
const root = document.createElement('div')
|
||||
createApp({
|
||||
render() {
|
||||
return h(
|
||||
MyTransition,
|
||||
{ onLeave: () => outerSpy() },
|
||||
() => (toggle.value ? h('div') : null)
|
||||
return h(MyTransition, { onLeave: () => outerSpy() }, () =>
|
||||
toggle.value ? h('div') : null
|
||||
)
|
||||
}
|
||||
}).mount(root)
|
||||
|
||||
@@ -11,7 +11,7 @@ describe('e2e: TransitionGroup', () => {
|
||||
|
||||
const htmlWhenTransitionStart = () =>
|
||||
page().evaluate(() => {
|
||||
(document.querySelector('#toggleBtn') as any)!.click()
|
||||
;(document.querySelector('#toggleBtn') as any)!.click()
|
||||
return Promise.resolve().then(() => {
|
||||
return document.querySelector('#container')!.innerHTML
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user