Skip to content

Commit 3944b75

Browse files
committed
test: add test case
1 parent 074afe6 commit 3944b75

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

packages/vue/__tests__/e2e/TransitionGroup.spec.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -519,13 +519,13 @@ describe('e2e: TransitionGroup', () => {
519519
const show = ref(false)
520520
createApp({
521521
template: `
522-
<div id="container">
523-
<transition-group name="test">
524-
<div v-for="item in items" :key="item" class="test">{{item}}</div>
525-
<Child key="child"/>
526-
</transition-group>
527-
</div>
528-
<button id="toggleBtn" @click="click">button</button>
522+
<div id="container">
523+
<transition-group name="test">
524+
<div v-for="item in items" :key="item" class="test">{{item}}</div>
525+
<Child key="child"/>
526+
</transition-group>
527+
</div>
528+
<button id="toggleBtn" @click="click">button</button>
529529
`,
530530
components: {
531531
Child: {
@@ -560,13 +560,6 @@ describe('e2e: TransitionGroup', () => {
560560
)
561561

562562
await transitionFinish(duration)
563-
expect(await html('#container')).toBe(
564-
`<div class="test test-enter-active test-enter-to">a</div>` +
565-
`<div class="test test-enter-active test-enter-to">b</div>` +
566-
`<div class="test test-enter-active test-enter-to">c</div>` +
567-
`<div class="test test-enter-from test-enter-active">child</div>`
568-
)
569-
570563
await nextFrame()
571564
expect(await html('#container')).toBe(
572565
`<div class="test">a</div>` +

0 commit comments

Comments
 (0)