add first test
This commit is contained in:
16
cypress/integration/basic.spec.js
Normal file
16
cypress/integration/basic.spec.js
Normal 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')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user