Skip to content

Commit f1f7fbd

Browse files
committed
fix: inject duration
1 parent 6916515 commit f1f7fbd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages-private/vapor-e2e-test/__tests__/transition.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ describe('vapor transition', () => {
3939

4040
beforeEach(async () => {
4141
const baseUrl = `http://localhost:${port}/transition/`
42+
await page().evaluateOnNewDocument(dur => {
43+
;(window as any).__TRANSITION_DURATION__ = dur
44+
}, duration)
4245
await page().goto(baseUrl)
4346
await page().waitForSelector('#app')
4447
})

packages-private/vapor-e2e-test/transition/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const toggle = ref(true)
1414
const count = ref(0)
1515
1616
const timeout = (fn, time) => setTimeout(fn, time)
17-
const duration = typeof process !== 'undefined' && process.env.CI ? 200 : 50
17+
const duration = window.__TRANSITION_DURATION__
1818
1919
let calls = {
2020
basic: [],

0 commit comments

Comments
 (0)