Skip to content

test(Transition): more test transition #1151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,636 changes: 1,636 additions & 0 deletions packages/vue/__tests__/Transition.spec.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function setupPuppeteer() {
await page.$eval(
selector,
(node, value) => {
(node as HTMLInputElement).value = value
;(node as HTMLInputElement).value = value
node.dispatchEvent(new Event('input'))
},
value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
<script src="../../dist/vue.global.js"></script>
<div id="app"></div>
<script>
Vue.createApp({
template: `
<div id="test"><transition><div v-if="toggle" class="test">content</div></transition></div>
<button @click="click">button</button>
`,
setup:() => {
const toggle = Vue.ref(true)
const click = () => toggle.value = !toggle.value
return { toggle, click }
}
}).mount('#app')
</script>
<script src="../dist/vue.global.js"></script>

<div id="app"></div>
<style>
.test {
-webkit-transition: opacity 50ms ease;
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/__tests__/commits.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
import { setupPuppeteer, E2E_TIMEOUT } from '../../__tests__/e2eUtils'
import mocks from './commits.mock'

describe('e2e: commits', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/__tests__/grid.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
import { setupPuppeteer, E2E_TIMEOUT } from '../../__tests__/e2eUtils'

interface TableData {
name: string
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/__tests__/markdown.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
import { setupPuppeteer, E2E_TIMEOUT } from '../../__tests__/e2eUtils'

describe('e2e: markdown', () => {
const { page, isVisible, value, html } = setupPuppeteer()
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/__tests__/svg.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
import { setupPuppeteer, E2E_TIMEOUT } from '../../__tests__/e2eUtils'

declare const globalStats: {
label: string
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/examples/__tests__/todomvc.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
import { setupPuppeteer, E2E_TIMEOUT } from '../../__tests__/e2eUtils'

describe('e2e: todomvc', () => {
const {
Expand Down
85 changes: 0 additions & 85 deletions packages/vue/examples/__tests__/transition/Transition.spec.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/vue/examples/__tests__/tree.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path'
import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils'
import { setupPuppeteer, E2E_TIMEOUT } from '../../__tests__/e2eUtils'

describe('e2e: tree', () => {
const { page, click, count, text, children, isVisible } = setupPuppeteer()
Expand Down