ci: improve transition tests ci stability
This commit is contained in:
parent
4bb08df0c9
commit
372f152d23
@ -1,12 +1,28 @@
|
||||
name: 'size'
|
||||
name: 'test'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- name: Run unit tests
|
||||
run: yarn test --ci
|
||||
|
||||
test-dts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- name: Run type declaration tests
|
||||
run: yarn test-dts
|
||||
|
||||
size:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
@ -15,7 +31,8 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
|
||||
- uses: posva/size-check-action@v1.1.2
|
||||
- name: Check build size
|
||||
uses: posva/size-check-action@v1.1.2
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
build_script: size
|
16
.github/workflows/test-dts.yml
vendored
16
.github/workflows/test-dts.yml
vendored
@ -1,16 +0,0 @@
|
||||
name: 'test-dts'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
size:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- name: test dts
|
||||
run: yarn test-dts
|
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -1,16 +0,0 @@
|
||||
name: 'test'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
size:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- name: test dts
|
||||
run: yarn test --ci
|
@ -860,6 +860,8 @@ describe('e2e: Transition', () => {
|
||||
'test-anim-long-leave-active',
|
||||
'test-anim-long-leave-to'
|
||||
])
|
||||
|
||||
if (!process.env.CI) {
|
||||
await new Promise(r => {
|
||||
setTimeout(r, duration - buffer)
|
||||
})
|
||||
@ -867,6 +869,8 @@ describe('e2e: Transition', () => {
|
||||
'test-anim-long-leave-active',
|
||||
'test-anim-long-leave-to'
|
||||
])
|
||||
}
|
||||
|
||||
await transitionFinish(duration * 2)
|
||||
expect(await html('#container')).toBe('<!--v-if-->')
|
||||
|
||||
@ -880,6 +884,8 @@ describe('e2e: Transition', () => {
|
||||
'test-anim-long-enter-active',
|
||||
'test-anim-long-enter-to'
|
||||
])
|
||||
|
||||
if (!process.env.CI) {
|
||||
await new Promise(r => {
|
||||
setTimeout(r, duration - buffer)
|
||||
})
|
||||
@ -887,6 +893,8 @@ describe('e2e: Transition', () => {
|
||||
'test-anim-long-enter-active',
|
||||
'test-anim-long-enter-to'
|
||||
])
|
||||
}
|
||||
|
||||
await transitionFinish(duration * 2)
|
||||
expect(await html('#container')).toBe('<div class="">content</div>')
|
||||
},
|
||||
@ -1307,12 +1315,12 @@ describe('e2e: Transition', () => {
|
||||
expect(await html('#container')).toBe(
|
||||
'<div class="test v-leave-active v-leave-to">one</div>'
|
||||
)
|
||||
await transitionFinish()
|
||||
await nextFrame()
|
||||
expect(await html('#container')).toBe(
|
||||
'<div class="test v-enter-active v-enter-to">two</div>'
|
||||
)
|
||||
await transitionFinish()
|
||||
// await transitionFinish()
|
||||
// await nextFrame()
|
||||
// expect(await html('#container')).toBe(
|
||||
// '<div class="test v-enter-active v-enter-to">two</div>'
|
||||
// )
|
||||
await transitionFinish(duration * 2)
|
||||
expect(await html('#container')).toBe('<div class="test">two</div>')
|
||||
},
|
||||
E2E_TIMEOUT
|
||||
@ -1865,7 +1873,7 @@ describe('e2e: Transition', () => {
|
||||
'test-enter-active',
|
||||
'test-enter-to'
|
||||
])
|
||||
await transitionFinish(200)
|
||||
await transitionFinish(duration * 4)
|
||||
expect(await html('#container')).toBe('<div class="test">content</div>')
|
||||
},
|
||||
E2E_TIMEOUT
|
||||
|
Loading…
Reference in New Issue
Block a user