File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
packages/vue/__tests__/e2e Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -1503,9 +1503,7 @@ describe('e2e: Transition', () => {
1503
1503
'avoid unmount activeBranch twice with Suspense (out-in mode + timeout="0")' ,
1504
1504
async ( ) => {
1505
1505
const unmountSpy = vi . fn ( )
1506
-
1507
1506
await page ( ) . exposeFunction ( 'unmountSpy' , unmountSpy )
1508
-
1509
1507
await page ( ) . evaluate ( ( ) => {
1510
1508
const { createApp, shallowRef, h } = ( window as any ) . Vue
1511
1509
const One = {
@@ -1527,19 +1525,19 @@ describe('e2e: Transition', () => {
1527
1525
}
1528
1526
createApp ( {
1529
1527
template : `
1530
- <div id="container">
1531
- <transition mode="out-in">
1532
- <suspense timeout="0">
1533
- <template #default>
1534
- <component :is="view"></component>
1535
- </template>
1536
- <template #fallback>
1537
- <div>Loading...</div>
1538
- </template>
1539
- </suspense>
1540
- </transition>
1541
- </div>
1542
- <button id="toggleBtn" @click="click">button</button>
1528
+ <div id="container">
1529
+ <transition mode="out-in">
1530
+ <suspense timeout="0">
1531
+ <template #default>
1532
+ <component :is="view"></component>
1533
+ </template>
1534
+ <template #fallback>
1535
+ <div>Loading...</div>
1536
+ </template>
1537
+ </suspense>
1538
+ </transition>
1539
+ </div>
1540
+ <button id="toggleBtn" @click="click">button</button>
1543
1541
` ,
1544
1542
setup : ( ) => {
1545
1543
const view = shallowRef ( One )
You can’t perform that action at this time.
0 commit comments