@@ -8,6 +8,7 @@ describe('e2e: TransitionGroup', () => {
8
8
9
9
const duration = 50
10
10
const buffer = 5
11
+ const transitionDisableProp = `style="transition-property: none;"`
11
12
12
13
const htmlWhenTransitionStart = ( ) =>
13
14
page ( ) . evaluate ( ( ) => {
@@ -106,15 +107,15 @@ describe('e2e: TransitionGroup', () => {
106
107
)
107
108
108
109
expect ( await htmlWhenTransitionStart ( ) ) . toBe (
109
- `<div class="test test-leave-active test-leave-from">a</div>` +
110
+ `<div class="test test-leave-active test-leave-from" ${ transitionDisableProp } >a</div>` +
110
111
`<div class="test">b</div>` +
111
- `<div class="test test-leave-active test-leave-from">c</div>`
112
+ `<div class="test test-leave-active test-leave-from" ${ transitionDisableProp } >c</div>`
112
113
)
113
114
await nextFrame ( )
114
115
expect ( await html ( '#container' ) ) . toBe (
115
- `<div class="test test-leave-active test-leave-to">a</div>` +
116
+ `<div class="test test-leave-active test-leave-to" style="" >a</div>` +
116
117
`<div class="test">b</div>` +
117
- `<div class="test test-leave-active test-leave-to">c</div>`
118
+ `<div class="test test-leave-active test-leave-to" style="" >c</div>`
118
119
)
119
120
await transitionFinish ( )
120
121
expect ( await html ( '#container' ) ) . toBe ( `<div class="test">b</div>` )
@@ -150,14 +151,14 @@ describe('e2e: TransitionGroup', () => {
150
151
)
151
152
152
153
expect ( await htmlWhenTransitionStart ( ) ) . toBe (
153
- `<div class="test test-leave-active test-leave-from">a</div>` +
154
+ `<div class="test test-leave-active test-leave-from" ${ transitionDisableProp } >a</div>` +
154
155
`<div class="test">b</div>` +
155
156
`<div class="test">c</div>` +
156
157
`<div class="test test-enter-active test-enter-from">d</div>`
157
158
)
158
159
await nextFrame ( )
159
160
expect ( await html ( '#container' ) ) . toBe (
160
- `<div class="test test-leave-active test-leave-to">a</div>` +
161
+ `<div class="test test-leave-active test-leave-to" style="" >a</div>` +
161
162
`<div class="test">b</div>` +
162
163
`<div class="test">c</div>` +
163
164
`<div class="test test-enter-active test-enter-to">d</div>`
@@ -278,7 +279,7 @@ describe('e2e: TransitionGroup', () => {
278
279
`<div class="test group-enter-active group-enter-from">d</div>` +
279
280
`<div class="test">b</div>` +
280
281
`<div class="test group-move" style="">a</div>` +
281
- `<div class="test group-leave-active group-leave-from group-move" style="" >c</div>`
282
+ `<div class="test group-leave-active group-leave-from group-move" ${ transitionDisableProp } >c</div>`
282
283
)
283
284
await nextFrame ( )
284
285
expect ( await html ( '#container' ) ) . toBe (
@@ -461,7 +462,7 @@ describe('e2e: TransitionGroup', () => {
461
462
462
463
// enter + leave
463
464
expect ( await htmlWhenTransitionStart ( ) ) . toBe (
464
- `<div class="test test-leave-active test-leave-from">a</div>` +
465
+ `<div class="test test-leave-active test-leave-from" ${ transitionDisableProp } >a</div>` +
465
466
`<div class="test">b</div>` +
466
467
`<div class="test">c</div>` +
467
468
`<div class="test test-enter-active test-enter-from">d</div>`
@@ -474,7 +475,7 @@ describe('e2e: TransitionGroup', () => {
474
475
expect ( afterEnterSpy ) . not . toBeCalled ( )
475
476
await nextFrame ( )
476
477
expect ( await html ( '#container' ) ) . toBe (
477
- `<div class="test test-leave-active test-leave-to">a</div>` +
478
+ `<div class="test test-leave-active test-leave-to" style="" >a</div>` +
478
479
`<div class="test">b</div>` +
479
480
`<div class="test">c</div>` +
480
481
`<div class="test test-enter-active test-enter-to">d</div>`
0 commit comments