test: make transition tests more stable locally

This commit is contained in:
Evan You 2024-07-29 22:07:40 +08:00
parent 5680142e68
commit af60e3560c
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 1 additions and 5 deletions

View File

@ -8,7 +8,7 @@ describe('e2e: Transition', () => {
const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
const duration = process.env.CI ? 200 : 50
const buffer = process.env.CI ? 20 : 5
const buffer = 20
const transitionFinish = (time = duration) => timeout(time + buffer)
@ -29,8 +29,6 @@ describe('e2e: Transition', () => {
test(
'basic transition',
async () => {
await page().goto(baseUrl)
await page().waitForSelector('#app')
await page().evaluate(() => {
const { createApp, ref } = (window as any).Vue
createApp({
@ -1296,8 +1294,6 @@ describe('e2e: Transition', () => {
test(
'wrapping transition + fallthrough attrs',
async () => {
await page().goto(baseUrl)
await page().waitForSelector('#app')
await page().evaluate(() => {
const { createApp, ref } = (window as any).Vue
createApp({