]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: make transition tests more stable locally
authorEvan You <evan@vuejs.org>
Mon, 29 Jul 2024 14:07:40 +0000 (22:07 +0800)
committerEvan You <evan@vuejs.org>
Mon, 29 Jul 2024 14:08:08 +0000 (22:08 +0800)
packages/vue/__tests__/e2e/Transition.spec.ts

index d005f78b84d4e6cdbbe7f284b80ba600e094e311..46d865f890ef9b693e11c1754ea73c4efb2f8f3e 100644 (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({