diff --git a/docs/src/demos/Examples/History/index.spec.js b/docs/src/demos/Examples/History/index.spec.js
new file mode 100644
index 00000000..c80842c4
--- /dev/null
+++ b/docs/src/demos/Examples/History/index.spec.js
@@ -0,0 +1,36 @@
+context('history', () => {
+ beforeEach(() => {
+ cy.visit('/examples/history')
+ })
+
+ describe('undo', () => {
+ it('should not have a mistake', () => {
+ cy.get('.ProseMirror').window().then(window => {
+ const { editor } = window
+ const html = editor.html()
+
+ cy.get('.ProseMirror h2:first').should('not.contain', 'Mistake')
+ })
+ })
+
+ it('should have a mistake', () => {
+ cy.get('.ProseMirror').window().then(window => {
+ const { editor } = window
+ const html = editor.html()
+
+ editor.insertText('Mistake')
+ cy.get('.ProseMirror h2:first').should('contain', 'Mistake')
+ })
+ })
+
+ it('the mistake should be removed again', () => {
+ cy.get('.ProseMirror').window().then(window => {
+ const { editor } = window
+ const html = editor.html()
+
+ editor.undo()
+ cy.get('.ProseMirror h2:first').should('not.contain', 'Mistake')
+ })
+ })
+ })
+})
\ No newline at end of file
diff --git a/docs/src/demos/Examples/History/index.vue b/docs/src/demos/Examples/History/index.vue
new file mode 100644
index 00000000..5c8a8cea
--- /dev/null
+++ b/docs/src/demos/Examples/History/index.vue
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/src/docPages/examples/history.md b/docs/src/docPages/examples/history.md
index 7b5a5342..6ef78819 100644
--- a/docs/src/docPages/examples/history.md
+++ b/docs/src/docPages/examples/history.md
@@ -1,3 +1,3 @@
# History
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/docs/src/links.yaml b/docs/src/links.yaml
index 739036e4..95415f44 100644
--- a/docs/src/links.yaml
+++ b/docs/src/links.yaml
@@ -75,7 +75,6 @@
draft: true
- title: History
link: /examples/history
- draft: true
- title: Read-Only
link: /examples/read-only
- title: Embeds