clean up the tests
This commit is contained in:
@@ -12,42 +12,36 @@ context('/api/extensions/typography', () => {
|
|||||||
it('should make an em dash from two dashes', () => {
|
it('should make an em dash from two dashes', () => {
|
||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.type('-- emDash')
|
.type('-- emDash')
|
||||||
.find('p')
|
|
||||||
.should('contain', '— emDash')
|
.should('contain', '— emDash')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should make an ellipsis from three dots', () => {
|
it('should make an ellipsis from three dots', () => {
|
||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.type('... ellipsis')
|
.type('... ellipsis')
|
||||||
.find('p')
|
|
||||||
.should('contain', '… ellipsis')
|
.should('contain', '… ellipsis')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should make an correct open double quote', () => {
|
it('should make an correct open double quote', () => {
|
||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.type('"openDoubleQuote"')
|
.type('"openDoubleQuote"')
|
||||||
.find('p')
|
|
||||||
.should('contain', '“openDoubleQuote')
|
.should('contain', '“openDoubleQuote')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should make an correct close double quote', () => {
|
it('should make an correct close double quote', () => {
|
||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.type('"closeDoubleQuote"')
|
.type('"closeDoubleQuote"')
|
||||||
.find('p')
|
|
||||||
.should('contain', 'closeDoubleQuote”')
|
.should('contain', 'closeDoubleQuote”')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should make an correct open single quote', () => {
|
it('should make an correct open single quote', () => {
|
||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.type("'openSingleQuote'")
|
.type("'openSingleQuote'")
|
||||||
.find('p')
|
|
||||||
.should('contain', '‘openSingleQuote’')
|
.should('contain', '‘openSingleQuote’')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should make an correct close single quote', () => {
|
it('should make an correct close single quote', () => {
|
||||||
cy.get('.ProseMirror')
|
cy.get('.ProseMirror')
|
||||||
.type("'closeSingleQuote'")
|
.type("'closeSingleQuote'")
|
||||||
.find('p')
|
|
||||||
.should('contain', 'closeSingleQuote’')
|
.should('contain', 'closeSingleQuote’')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user