add a test to the text extension page
This commit is contained in:
@@ -1,5 +1,18 @@
|
|||||||
context('/api/extensions/document', () => {
|
context('/api/extensions/text', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/api/extensions/document')
|
cy.visit('/api/extensions/text')
|
||||||
|
})
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||||
|
editor.clearContent()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
it('text should be wrapped in a paragraph by default', () => {
|
||||||
|
cy.get('.ProseMirror')
|
||||||
|
.type('Example Text')
|
||||||
|
.find('p')
|
||||||
|
.should('contain', 'Example Text')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user