add first test

This commit is contained in:
Philipp Kühn
2020-03-03 23:34:03 +01:00
parent 4297260cf7
commit ddad1a62e6
22 changed files with 72 additions and 1999 deletions

View File

@@ -0,0 +1,16 @@
context('Basic', () => {
beforeEach(() => {
cy.visit('/tests/basic')
})
describe('insertText', () => {
it('should prepend text', () => {
cy.get('.ProseMirror').should('contain', 'foo')
cy.window().then(win => {
win.editor.insertText('bar')
cy.get('.ProseMirror').should('contain', 'barfoo')
})
})
})
})