mirror of https://github.com/vuejs/core.git
test: make transition tests more stable locally
This commit is contained in:
parent
5680142e68
commit
af60e3560c
|
@ -8,7 +8,7 @@ describe('e2e: Transition', () => {
|
||||||
const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
|
const baseUrl = `file://${path.resolve(__dirname, './transition.html')}`
|
||||||
|
|
||||||
const duration = process.env.CI ? 200 : 50
|
const duration = process.env.CI ? 200 : 50
|
||||||
const buffer = process.env.CI ? 20 : 5
|
const buffer = 20
|
||||||
|
|
||||||
const transitionFinish = (time = duration) => timeout(time + buffer)
|
const transitionFinish = (time = duration) => timeout(time + buffer)
|
||||||
|
|
||||||
|
@ -29,8 +29,6 @@ describe('e2e: Transition', () => {
|
||||||
test(
|
test(
|
||||||
'basic transition',
|
'basic transition',
|
||||||
async () => {
|
async () => {
|
||||||
await page().goto(baseUrl)
|
|
||||||
await page().waitForSelector('#app')
|
|
||||||
await page().evaluate(() => {
|
await page().evaluate(() => {
|
||||||
const { createApp, ref } = (window as any).Vue
|
const { createApp, ref } = (window as any).Vue
|
||||||
createApp({
|
createApp({
|
||||||
|
@ -1296,8 +1294,6 @@ describe('e2e: Transition', () => {
|
||||||
test(
|
test(
|
||||||
'wrapping transition + fallthrough attrs',
|
'wrapping transition + fallthrough attrs',
|
||||||
async () => {
|
async () => {
|
||||||
await page().goto(baseUrl)
|
|
||||||
await page().waitForSelector('#app')
|
|
||||||
await page().evaluate(() => {
|
await page().evaluate(() => {
|
||||||
const { createApp, ref } = (window as any).Vue
|
const { createApp, ref } = (window as any).Vue
|
||||||
createApp({
|
createApp({
|
||||||
|
|
Loading…
Reference in New Issue