diff --git a/tests/cypress/integration/basic.spec.js b/docs/src/demos/Basic/index.spec.js similarity index 98% rename from tests/cypress/integration/basic.spec.js rename to docs/src/demos/Basic/index.spec.js index f9754739..5a350e28 100644 --- a/tests/cypress/integration/basic.spec.js +++ b/docs/src/demos/Basic/index.spec.js @@ -1,6 +1,6 @@ context('basic', () => { beforeEach(() => { - cy.visit('/tests/basic') + cy.visit('/basic') }) describe('export', () => { @@ -12,7 +12,7 @@ context('basic', () => { expect(html).to.equal('
foo
') }) }) - + it('should return json', () => { cy.get('.ProseMirror').window().then(window => { const { editor } = window diff --git a/docs/src/demos/Basic/index.vue b/docs/src/demos/Basic/index.vue index 67af712e..852104f6 100644 --- a/docs/src/demos/Basic/index.vue +++ b/docs/src/demos/Basic/index.vue @@ -24,6 +24,8 @@ export default { extensions: extensions(), renderer: Renderer, }) + + window.editor = this.editor }, beforeDestroy() { diff --git a/docs/src/docPages/basic.md b/docs/src/docPages/basic.md new file mode 100644 index 00000000..871d1799 --- /dev/null +++ b/docs/src/docPages/basic.md @@ -0,0 +1 @@ +