forked from gridsome/gridsome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): build projects and test them in browser
- Loading branch information
Showing
22 changed files
with
616 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
gridsome/lib/__tests__/__fixtures__/project-basic/src/templates/TestDoc.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
gridsome/lib/__tests__/__fixtures__/project-basic/src/templates/TestPage.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
gridsome/lib/__tests__/__fixtures__/project-blog/src/layouts/Default.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div :class="{ 'is-mounted': isMounted }"> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return { | ||
isMounted: false | ||
} | ||
}, | ||
mounted (){ | ||
this.isMounted = true | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Layout from './layouts/Default.vue' | ||
|
||
export default function (Vue, { head }) { | ||
Vue.component('Layout', Layout) | ||
} |
4 changes: 2 additions & 2 deletions
4
gridsome/lib/__tests__/__fixtures__/project-blog/src/pages/Index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
gridsome/lib/__tests__/__fixtures__/project-blog/src/templates/Category.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 25 additions & 1 deletion
26
gridsome/lib/__tests__/__fixtures__/project-blog/src/templates/Post.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
gridsome/lib/__tests__/__fixtures__/project-blog/src/templates/Tag.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
gridsome/lib/__tests__/__fixtures__/project-path-prefix/src/layouts/Default.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div :class="{ 'is-mounted': isMounted }"> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return { | ||
isMounted: false | ||
} | ||
}, | ||
mounted (){ | ||
this.isMounted = true | ||
} | ||
} | ||
</script> |
5 changes: 5 additions & 0 deletions
5
gridsome/lib/__tests__/__fixtures__/project-path-prefix/src/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Layout from './layouts/Default.vue' | ||
|
||
export default function (Vue, { head }) { | ||
Vue.component('Layout', Layout) | ||
} |
9 changes: 6 additions & 3 deletions
9
gridsome/lib/__tests__/__fixtures__/project-path-prefix/src/pages/About.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<template> | ||
<div> | ||
about | ||
</div> | ||
<Layout class="about"> | ||
<h1>About</h1> | ||
<g-link class="g-link-home" to="/" active-class="test-active"> | ||
Home | ||
</g-link> | ||
</Layout> | ||
</template> |
8 changes: 4 additions & 4 deletions
8
gridsome/lib/__tests__/__fixtures__/project-path-prefix/src/pages/Index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.