generate URLs for all demos and use those to run the tests
This commit is contained in:
@@ -57,6 +57,35 @@ module.exports = function (api) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
api.loadSource(({ addCollection }) => {
|
api.loadSource(({ addCollection }) => {
|
||||||
|
/**
|
||||||
|
* Generate pages for all demo components for testing purposes
|
||||||
|
*/
|
||||||
|
globby.sync('./src/demos/**/index.vue').forEach(file => {
|
||||||
|
|
||||||
|
const match = file.match(
|
||||||
|
new RegExp(/\.\/src\/demos\/([\S]+)\/index.vue/i),
|
||||||
|
)
|
||||||
|
|
||||||
|
if (!match) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
api.createPages(({ createPage }) => {
|
||||||
|
createPage({
|
||||||
|
// name: '/demos/Extensions/CharacterCount'
|
||||||
|
path: `/demos/${match[1]}`,
|
||||||
|
component: './src/templates/DemoPage/index.vue',
|
||||||
|
context: {
|
||||||
|
// name: 'Extensions/CharacterCount'
|
||||||
|
name: match[1],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read out all packages?
|
||||||
|
*/
|
||||||
const appCollection = addCollection({ typeName: 'Package' })
|
const appCollection = addCollection({ typeName: 'Package' })
|
||||||
|
|
||||||
// packages.forEach(package => {
|
// packages.forEach(package => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/default', () => {
|
context('/demos/Examples/Book', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/default')
|
cy.visit('/demos/Examples/Book')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/collaborative-editing', () => {
|
context('/demos/Examples/CollaborativeEditing', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/collaborative-editing')
|
cy.visit('/demos/Examples/CollaborativeEditing')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/default', () => {
|
context('/demos/Examples/Default', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/default')
|
cy.visit('/demos/Examples/Default')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/formatting', () => {
|
context('/demos/Examples/Formatting', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/formatting')
|
cy.visit('/demos/Examples/Formatting')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/markdown-shortcuts', () => {
|
context('/demos/Examples/MarkdownShortcuts', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/markdown-shortcuts')
|
cy.visit('/demos/Examples/MarkdownShortcuts')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/minimalistic', () => {
|
context('/demos/Examples/Minimalistic', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/minimalistic')
|
cy.visit('/demos/Examples/Minimalistic')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/multiple-editors', () => {
|
context('/demos/Examples/MultipleEditors', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/multiple-editors')
|
cy.visit('/demos/Examples/MultipleEditors')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/todo-app', () => {
|
context('/demos/Examples/TodoApp', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/todo-app')
|
cy.visit('/demos/Examples/TodoApp')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/annotations', () => {
|
context('/demos/Extensions/Annotations', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/annotations')
|
cy.visit('/demos/Extensions/Annotations')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/annotations', () => {
|
context('/demos/Examples/Annotations', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/annotations')
|
cy.visit('/demos/Examples/Annotations')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/collaboration', () => {
|
context('/demos/Extensions/Collaboration', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/collaboration')
|
cy.visit('/demos/Extensions/Collaboration')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/collaboration-cursor', () => {
|
context('/demos/Extensions/CollaborationCursor', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/collaboration-cursor')
|
cy.visit('/demos/Extensions/CollaborationCursor')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/dropcursor', () => {
|
context('/demos/Examples/Dropcursor', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/dropcursor')
|
cy.visit('/demos/Examples/Dropcursor')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/focus', () => {
|
context('/demos/Extensions/Focus', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/focus')
|
cy.visit('/demos/Extensions/Focus')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should have class', () => {
|
it('should have class', () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/font-family', () => {
|
context('/demos/Extensions/FontFamily', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/font-family')
|
cy.visit('/demos/Extensions/FontFamily')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/gapcursor', () => {
|
context('/demos/Examples/Gapcursor', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/gapcursor')
|
cy.visit('/demos/Examples/Gapcursor')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/history', () => {
|
context('/demos/Extensions/History', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/history')
|
cy.visit('/demos/Extensions/History')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/text-align', () => {
|
context('/demos/Extensions/TextAlign', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/text-align')
|
cy.visit('/demos/Extensions/TextAlign')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/extensions/typography', () => {
|
context('/demos/Extensions/Typography', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/typography')
|
cy.visit('/demos/Extensions/Typography')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/examples/v-model', () => {
|
context('/demos/Examples/VModel', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/v-model')
|
cy.visit('/demos/Examples/VModel')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/guide/store-content', () => {
|
context('/demos/Guide/StoreContent/ExportHTML', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/guide/store-content')
|
cy.visit('/demos/Guide/StoreContent/ExportHTML')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/guide/store-content', () => {
|
context('/demos/Guide/StoreContent/ExportJSON', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/guide/store-content')
|
cy.visit('/demos/Guide/StoreContent/ExportJSON')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/guide/store-content', () => {
|
context('/demos/Guide/StoreContent/ReadOnly', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('/guide/store-content')
|
cy.visit('/demos/Guide/StoreContent/ReadOnly')
|
||||||
})
|
})
|
||||||
|
|
||||||
it.skip('should be read-only', () => {
|
it.skip('should be read-only', () => {
|
||||||
@@ -13,7 +13,7 @@ context('/guide/store-content', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it.skip('should be editable', () => {
|
it('should be editable', () => {
|
||||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||||
cy.get('#editable').check()
|
cy.get('#editable').check()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/bold', () => {
|
context('/demos/Marks/Bold', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/bold')
|
cy.visit('/demos/Marks/Bold')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/code', () => {
|
context('/demos/Marks/Code', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/code')
|
cy.visit('/demos/Marks/Code')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/highlight', () => {
|
context('/demos/Marks/Highlight', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/highlight')
|
cy.visit('/demos/Marks/Highlight')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/italic', () => {
|
context('/demos/Marks/Italic', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/italic')
|
cy.visit('/demos/Marks/Italic')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/link', () => {
|
context('/demos/Marks/Link', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/link')
|
cy.visit('/demos/Marks/Link')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/strike', () => {
|
context('/demos/Marks/Strike', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/strike')
|
cy.visit('/demos/Marks/Strike')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/text-style', () => {
|
context('/demos/Marks/TextStyle', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/text-style')
|
cy.visit('/demos/Marks/TextStyle')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/marks/underline', () => {
|
context('/demos/Marks/Underline', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/marks/underline')
|
cy.visit('/demos/Marks/Underline')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/blockquote', () => {
|
context('/demos/Nodes/Blockquote', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/blockquote')
|
cy.visit('/demos/Nodes/Blockquote')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/bullet-list', () => {
|
context('/demos/Nodes/BulletList', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/bullet-list')
|
cy.visit('/demos/Nodes/BulletList')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/code-block', () => {
|
context('/demos/Nodes/CodeBlock', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/code-block')
|
cy.visit('/demos/Nodes/CodeBlock')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/document', () => {
|
context('/demos/Nodes/Document', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/document')
|
cy.visit('/demos/Nodes/Document')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/hard-break', () => {
|
context('/demos/Nodes/HardBreak', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/hard-break')
|
cy.visit('/demos/Nodes/HardBreak')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/heading', () => {
|
context('/demos/Nodes/Heading', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/heading')
|
cy.visit('/demos/Nodes/Heading')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/horizontal-rule', () => {
|
context('/demos/Nodes/HorizontalRule', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/horizontal-rule')
|
cy.visit('/demos/Nodes/HorizontalRule')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/image', () => {
|
context('/demos/Nodes/Image', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/image')
|
cy.visit('/demos/Nodes/Image')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/list-item', () => {
|
context('/demos/Nodes/ListItem', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/list-item')
|
cy.visit('/demos/Nodes/ListItem')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
context('/api/nodes/mention', () => {
|
context('/demos/Nodes/Mention', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/mention')
|
cy.visit('/demos/Nodes/Mention')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// TODO: Write tests
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/ordered-list', () => {
|
context('/demos/Nodes/OrderedList', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/ordered-list')
|
cy.visit('/demos/Nodes/OrderedList')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/paragraph', () => {
|
context('/demos/Nodes/Paragraph', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/paragraph')
|
cy.visit('/demos/Nodes/Paragraph')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/table', () => {
|
context('/demos/Nodes/Table', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/table')
|
cy.visit('/demos/Nodes/Table')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/task-item', () => {
|
context('/demos/Nodes/TaskItem', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/task-item')
|
cy.visit('/demos/Nodes/TaskItem')
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Write tests
|
// TODO: Write tests
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/task-list', () => {
|
context('/demos/Nodes/TaskList', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/task-list')
|
cy.visit('/demos/Nodes/TaskList')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('/api/nodes/text', () => {
|
context('/demos/Nodes/Text', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/nodes/text')
|
cy.visit('/demos/Nodes/Text')
|
||||||
})
|
})
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|||||||
23
docs/src/templates/DemoPage/index.vue
Normal file
23
docs/src/templates/DemoPage/index.vue
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="demo-page">
|
||||||
|
<demo :name="$context.name" :show-source="false" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
metaInfo() {
|
||||||
|
return {
|
||||||
|
title: this.$context.name,
|
||||||
|
meta: [
|
||||||
|
{
|
||||||
|
name: 'robots',
|
||||||
|
content: 'noindex',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" src="./style.scss" scoped></style>
|
||||||
4
docs/src/templates/DemoPage/style.scss
Normal file
4
docs/src/templates/DemoPage/style.scss
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
.demo-page {
|
||||||
|
max-width: 40rem;
|
||||||
|
margin: 2rem auto;
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
context('clearContent', () => {
|
context('clearContent', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/default')
|
cy.visit('/demos/Examples/default')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('returns true for the clearContent command', () => {
|
it('returns true for the clearContent command', () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('insertHTML', () => {
|
context('insertHTML', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/default')
|
cy.visit('/demos/Examples/default')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('returns true for the insertHTML command', () => {
|
it('returns true for the insertHTML command', () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
context('setContent', () => {
|
context('setContent', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/examples/default')
|
cy.visit('/demos/Examples/default')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('returns true for the setContent command', () => {
|
it('returns true for the setContent command', () => {
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
"baseUrl": "http://localhost:3000",
|
"baseUrl": "http://localhost:3000",
|
||||||
"integrationFolder": "../",
|
"integrationFolder": "../",
|
||||||
"testFiles": "{docs,tests}/**/*.spec.{js,ts}",
|
"testFiles": "{docs,tests}/**/*.spec.{js,ts}"
|
||||||
"viewportWidth": 1280,
|
|
||||||
"viewportHeight": 1280
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user