Files
tiptap/cypress/integration/basic.spec.js
Philipp Kühn ddad1a62e6 add first test
2020-03-03 23:34:03 +01:00

16 lines
358 B
JavaScript

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')
})
})
})
})